Interactive Demo

The Stack & State Visualizer

The Stack & State Visualizer is a free, interactive learning demo from the Think Python, 2nd edition course on Lykke. It helps you build intuition for Programming Fundamentals, Functions and Scope, Control Flow (Recursion and Iteration), Data Structures (Strings and Lists). Play with it directly in your browser — it features 3 sliders and 2 buttons. This demo lives in the “Core Programming Foundations” section of the course.

Preview of the The Stack & State Visualizer interactive demo
Preview of The Stack & State Visualizer — play the live version below.
Loading interactive demo…

How to use this demo

  1. Drag the sliders to change the inputs and watch the visualization update in real time.
  2. Use the “Step Forward”, “Reset” buttons to trigger actions or reset the demo.
  3. Experiment freely — there's nothing to break, and every change is reversible.

What you'll explore

Frequently asked questions

What does the The Stack & State Visualizer demo do?

Covers the essential building blocks of programming, including program execution, variable management, and function design based on the first ten chapters. The Stack & State Visualizer turns that idea into something you can manipulate directly and watch respond.

What Think Python, 2nd edition concept does The Stack & State Visualizer teach?

Covers the essential building blocks of programming, including program execution, variable management, and function design based on the first ten chapters. It focuses on Programming Fundamentals, Functions and Scope, Control Flow (Recursion and Iteration), Data Structures (Strings and Lists), Debugging and Error Handling from the “Core Programming Foundations” section.

What can I control in The Stack & State Visualizer?

The sliders change the key inputs; the “Step Forward”, “Reset” buttons run actions or reset the demo. Every change updates the visualization in real time, so you can see exactly how each variable affects the outcome.

How does The Stack & State Visualizer fit into the Think Python, 2nd edition course?

Think Python, 2nd Edition, is an introductory computer science course designed to teach programming through the Python language. It emphasizes a concise, jargon-free approach, focusing on fundamental concepts like debug… This demo is the interactive piece for the “Core Programming Foundations” section. Open the full Think Python, 2nd edition course wiki at https://www.getlykke.com/explore/public/think-python-2nd-edition-ff823fa0-9e72-490d-bf5f-19c0512d9bf1 for notes, flashcards, quizzes and the other demos.

What will I understand better after using The Stack & State Visualizer?

You'll build intuition for Programming Fundamentals, Functions and Scope, Control Flow (Recursion and Iteration), Data Structures (Strings and Lists), Debugging and Error Handling — and, crucially, see how they behave when you change the inputs, which is hard to get from a textbook or lecture on Think Python, 2nd edition alone.

From the Think Python, 2nd edition course

This interactive demo is part of the Core Programming Foundations section. Explore the full Think Python, 2nd edition course wiki on Lykke — with notes, flashcards, quizzes and more interactive demos.

Open the Think Python, 2nd edition course →