Debugging Dojo · Python

Observe. Hypothesize. Fix — Python logic, state, and sharp edges.

A progressive Python debugging gym: classic logic bugs, aliasing and mutation traps, then famous footguns — mutable defaults, late-binding closures, identity vs equality. An AI tutor stays Socratic: questions and layered hints, not spoilers.

Intermediate12 lessons~5.5h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 11 lessons and save progress.

Course content

1 · Mindset

  • Observe Before You TouchFree12 min
  • 🔒The Else That Lied15 min
  • 🔒Sorted Like a Dictionary15 min
  • 🔒The List That Remembered Too Much18 min
  • 🔒Fencepost in a Slice12 min
  • 🔒The Sum That Swallowed Errors18 min
  • 🔒Removing While Iterating20 min

2 · Sharp edges

  • 🔒Mutable Default Argument22 min
  • 🔒Late-Binding Closures22 min
  • 🔒is Is Not Equality20 min
  • 🔒Mutating a Set While Iterating20 min

3 · Boss

  • 🔒Mutable Dict Key25 min