Skip to main content

Python Tutor

Visualises step by step how code runs.

  • Free
  • Interface in English
Open Python Tutor
Who it's for
learners, teachers
Stage
upper secondary
Subjects
computing and IT
Price
Free
Bulgarian language
no, English only

What Python Tutor does

Python Tutor visualises how to run a step by step code.

A tip from practice

Excellent for explaining loops and recursion.

Strengths

  • Shows memory and variables
  • Free
  • Works with multiple languages

Constraints

  • Only short programs
  • Simple interface

What it's good for in school

  • First steps in programming
  • Block-based and text-based projects
  • Robotics and physical devices
  • Logical thinking

How to get started

  1. Start with a short 10-minute challenge.
  2. Work in pairs: one writes, the other checks.
  3. Ask learners to explain their code out loud.
  4. Show how AI can give hints but not solve it for them.

A classroom example

Learners follow a cycle step by step and understand why their program is looping.

One more idea: Show what's going on in memory on a cycle before learners write themselves.

Before the lesson

Prepare the task in Python Tutor and try it yourself for 5 minutes.

In the lesson

Explain the purpose, show an example and give the learners 10-15 minutes to work.

Afterwards

Discuss the results: what the tool did well and where it went wrong.

Good practice and safety

  • Do not enter personal data of learners: names, grades, photos, health information.
  • Check facts and sources: AI can be confidently wrong.
  • Use a school account whenever possible and read the privacy policy.
  • Learners must indicate when and how they used AI in their work.
English