Home Module 4: Python Basics Lesson 4.4
Module 4: Python Basics

Python bug hunt — fix the broken code!

⏱ 25 min debug Ages 9 & 12
💡 The big idea

Professional developers spend roughly half their working time debugging code. Finding bugs is not a sign that you're bad at coding — it's the job. The faster you can spot errors, the better developer you'll be.

🐛
Find all 5 Python bugs — click each one!

There are 5 bugs in this Python code. Click each bug to mark it found.

animal = "cat" print("My pet is:", Animal) for i in range(3) print(animal, "says hello") if animal = "cat": print("Meow!) for j in range(2): print("Counting:", j)
Bugs found: 0 / 5
📝
Lesson quiz — test yourself!
Wrap-up discussion questions
1️⃣ What were the 5 types of Python bugs you found today?
2️⃣ Why does Python need indentation when other languages don't?
3️⃣ How could you use AI to help you understand an error message you've never seen before?
📍 Lesson 4.4 — Python Basics
← Previous Next →