Skip to content

List of Beginning Python MicroSims

Interactive Micro Simulations to help students beginning Python programming. Click any card to open the MicroSim.

  • Code Stepper


    Code Stepper

    Step through a short Python program one line at a time and watch the output appear — see top-to-bottom execution with your own eyes. (Chapters 1-2)

  • Variable Memory Model


    Variable Memory Model

    Watch labeled memory boxes get created, read, and replaced as a script runs — the sticky-note metaphor made real. (Chapter 3)

  • Function Call Flow


    Function Call Flow

    Trace a function call in slow motion: the argument flies into the parameter slot and the return value flies back. (Chapter 4)

  • Turtle State Inspector


    Turtle State Inspector

    Step through turtle commands while a dashboard reveals the turtle's hidden state: position, heading compass, and pen. (Chapter 5)

  • Expression Evaluator


    Expression Evaluator

    Watch 2 + 3 * 4 collapse one operation at a time in the exact order Python evaluates it — PEMDAS made visible. (Chapter 6)

  • Modulo Clock


    Modulo Clock

    See the remainder as wrap-around counting on a dial and as leftover dots — the % operator made concrete. (Chapter 6)

  • For-Loop Stepper


    For-Loop Stepper

    Crank a for loop by hand: watch i change, the arrow jump back to the top, and a turtle draw one square side per trip. (Chapter 7)

  • Range Explorer


    Range Explorer

    Slide start, stop, and step and watch the number line light up — the stop value is a hollow ring because it is never included. (Chapter 7)

  • Control Flow Explorer


    Control Flow Explorer

    Move a score slider and watch exactly one path through an if/elif/else flowchart glow green — later checks are never even looked at. (Chapter 9)

  • Boolean Logic Lab


    Boolean Logic Lab

    Wire True/False inputs into and, or, and not — and catch Python skipping the second input when the first one decides. (Chapters 9, 19)

  • While-Loop Stepper


    While-Loop Stepper

    Feel the check-run-check rhythm of a while loop — and safely watch an infinite loop spin inside its cage. (Chapter 10)

  • Scope Inspector


    Scope Inspector

    Variables live in rooms: watch a Function room appear during a call, shadow the global, and vanish at return. (Chapter 11)

  • RGB Color Mixer


    RGB Color Mixer

    Mix red, green, and blue, watch the hex code assemble itself, and copy the pencolor line straight into your turtle art. (Chapter 12)

  • String Slicer


    String Slicer

    Drag start and end handles over letter tiles and watch word[2:7] build itself — the end is never included, and now you can see why. (Chapters 8, 14)

  • List Index Explorer


    List Index Explorer

    Append, insert, and pop a list of colored boxes and watch every index renumber — plus the TypeError a string gives instead. (Chapters 15-16)

  • Stack and Queue Simulator


    Stack and Queue Simulator

    Feed the same letters into a stack of plates and a waiting line — then watch them leave in opposite orders. (Chapters 16, 30)

  • Dice Roll Histogram


    Dice Roll Histogram

    Roll 1, 100, or 1000 dice and watch chaos flatten into a pattern — then find the mountain hiding in two-dice sums. (Chapter 17)

  • Sine Wave Explorer


    Sine Wave Explorer

    Drag amplitude, frequency, and phase sliders and watch y = A × sin(f·x + p) re-plot instantly. (Chapter 18)

  • Unit Circle Degrees and Radians


    Unit Circle

    Drag a point around the unit circle and read the angle in degrees, radians, and multiples of π — with sin and cos bars. (Chapter 18)

  • Set Operations Venn


    Set Operations Venn

    Type two sets, watch the chips land in the right regions, and light up union, intersection, and difference. (Chapter 20)

  • Dictionary Key Lookup


    Dictionary Key Lookup

    Type a key and the right drawer springs open in one hop — or hit a KeyError — then race the dict against a list. (Chapter 21)

  • Recursion Call Stack


    Recursion Call Stack

    Watch factorial(4) stack frames pile up to the gold base case, then unwind as each paused multiplication fills in. (Chapters 23-24)

  • Fractal Tree Explorer


    Fractal Tree Explorer

    Sculpt a recursive tree with angle, depth, and shrink sliders — every recursion level wears its own color. (Chapter 24)

  • Object Instance Inspector


    Object Instance Inspector

    A dashed blueprint, solid instance cards, and a glowing arrow that shows exactly which dog self is. (Chapter 25)

  • Inheritance Explorer


    Inheritance Explorer

    Click a method call and watch the lookup climb the class tree — overrides shadow the parent, and super() climbs on purpose. (Chapter 25)

  • JSON to Python Type Mapper


    JSON to Python Type Mapper

    Edit JSON on the left and watch the Python objects appear on the right — true becomes True, null becomes None. (Chapter 27)

  • Regex Match Lab


    Regex Match Lab

    Type a pattern, watch matches light up live, and read the pattern as plain-English chips — regex stops being magic. (Chapter 29)

  • Sorting Algorithm Comparer


    Sorting Algorithm Comparer

    Step three classic sorts one comparison at a time, then race bubble vs insertion on identical data — the winner depends on the data. (Chapter 30)

  • Search Race


    Search Race

    Linear search plods box by box while binary search throws away half the shelf per check — and a shuffled-shelf trap shows why sorted matters. (Chapter 30)

  • Graph Traversal Explorer


    Graph Traversal Explorer

    Step BFS and DFS over the same graph with the live queue or stack beside it — then watch BFS reveal the shortest path. (Chapter 30)