Online Python Tutor: Learn programming by visualizing code execution
Looks good.<p>However, my big criticism of these sorts of visualisations is they seem to be entirely geared towards imperative programming. Has anyone seen similar visualisations for more functionally structured code?<p>Oh, I see you can write your own code to be visualised. Here's a simple list comprehension:
<a href="http://pythontutor.com/visualize.html#code=myList+%3D+range(10)%0Atotal+%3D+%5B2+*+x+for+x+in+myList+if+x+%25+2+%3D%3D+0%5D&mode=display&cumulative=true&py=2&curInstr=0" rel="nofollow">http://pythontutor.com/visualize.html#code=myList+%3D+range(...</a><p>Not the most enlightening visual.