News for hackers. Stuff that matters.
Re:Online Python Tutor: Learn programming by visualizing cod... by MathProgramming on Tuesday October 02, 2012 @10:13AM (#4602042)
Why would they simulate a linked list using tuples? It seems a bit contrived (or rather, not Pythonic) when lists are a built-in datatype.
Re:Online Python Tutor: Learn programming by visualizing cod... by TeMPOraL on Tuesday October 02, 2012 @10:44AM (#4602217)
A quick way to emulate cons cells[1], which are good for explaining how linked lists work?

[1] - http://en.wikipedia.org/wiki/Cons

Re:Online Python Tutor: Learn programming by visualizing cod... by pgbovine on Tuesday October 02, 2012 @10:50AM (#4602256)
Yep, right on! I wanted to show off linked list recursion and render box-and-pointer diagrams like those seen in SICP.