Python Tutor: Visualize code in
Python
,
JavaScript
,
C
,
C++
, and
Java
Please wait ... your code is running (up to 10 seconds)
Write code in
Python 3.6
C (gcc 9.3, C17 + GNU)
C++ (g++ 9.3, C++20 + GNU)
Java 8
JavaScript ES6
------
Python 2.7 [unsupported]
Visualize Execution
hide exited frames [default]
show all frames (Python)
inline primitives and try to nest objects
inline primitives, don't nest objects [default]
render all objects on the heap (Python/Java)
draw pointers as arrows [default]
use text labels for pointers
Why are there ads?