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]
Java
C (C17 + GNU extensions)
C++ (C++20 + GNU extensions)
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.