A Python Visualizer

Thanks to the ACSE discussion list, I stumbled onto this beauty.  Python is the choice of programming language for a lot of secondary schools.  This visualizer can go a long way to help the cause.

Gone are the days of tracing a program on the blackboard!

Enter the code of the program you wish to test…in the screen capture above, I’ve taken the example given from the site.  When you’re ready to go, click on “Visualize Execution”.

The screen clears to reveal two panels.  On the left is your original code and, on the right, the results from executing the code. 

Now you have the option to step through your code.  The line being executed gets pointed to in the level panel and the results appear on the right.  I had to smile – I think of the awful looking presentation that I used to create by myself.  This is nice, neat, and very readable.

So, you can step through the program, step backwards, and really visualize what’s happening with any program.  Very nicely done!

Thanks, ACSE mailing list for sharing this.

Author: dougpete

The content of this blog is generated by whatever strikes my fancy at any given point. It might be computers, weather, political, or something else in nature. I experiment and comment a lot on things so don't take anything here too seriously; I might change my mind a day later but what you read is my thought and opinion at the time I wrote it! My personal website is at: http://www.dougpeterson.ca Follow me on Twitter: http://www.twitter.com/dougpete I'm bookmarking things at: http://www.diigo.com/user/dougpete

One thought on “A Python Visualizer”

Comments are closed.