Python Tutor
Visualises step by step how code runs.
- Free
- Interface in English
- Category
- Coding and robotics
- 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
- Start with a short 10-minute challenge.
- Work in pairs: one writes, the other checks.
- Ask learners to explain their code out loud.
- 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.
Personal data and AI in school: what never to enterHow to check whether an AI answer is correct