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.11 [newest version, latest features not tested yet!]
Python 3.6 [reliable stable version, select 3.11 for newest]
C (C17 + GNU extensions, gcc 9.3)
C++ (C++20 + GNU extensions, g++ 9.3)
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
Ads keep this site free
. We are not responsible for contents of ads.