Write code here or load an example:

Options:

Examples to visualize

Basic: hello | happy | intro | filter | tokenize | insertion sort

Math: factorial | fibonacci | memoized fibonacci | square root | gcd | towers of hanoi

User Input: raw input

Objects: OOP 1 | OOP 2 | OOP 3 | inheritance

Linked Lists: LL 1 | LL 2 | LL sum

Pointer Aliasing:
aliasing 1 | aliasing 2 | aliasing 3 | aliasing 4
aliasing 5 | aliasing 6 | aliasing 7 | aliasing 8 | sumList

Higher-Order Functions:
closure 1 | closure 2 | closure 3 | closure 4 | closure 5
list map | summation | lambda param | student torture

Python Tricks:
list comprehension | list/set/dict comp | decorators | generators | gen expr
varargs | exceptions | for-else | nonlocal | metaclass

HTML rendering (experimental code by Chris Meyers):
[WARNING: will set toggle option from "show everything" to "show only outputs"]
minPath | knapsack | sieve | fib