Demo visualizations of code executing online, using tools like Python Tutor, and on paper before having students practice visualizing code execution in the same way to better learn how code executes.

  • Below are two great options available for helping students visualize code online for Python and Java respectively:
  • However, students still need to be tracing by hand!
    • Students should may still need their own tracing diagrams on exams, so model it by hand as well as using a visualiser tool.

More about this tip

External Source

Interview with Dan Leyzberg.