PythonInteractiveIntermediate

Python Debug Lab

Hunt real Python bugs, fill in file-handling code, put a data pipeline in order and match expressions to results.

Topics you will practise

  • Logic errors
  • Default arguments
  • File handling
  • Data processing
  • Built-ins

5 activities. Check each answer to see an explanation.

Results are saved only in this browser.

How this works

  • Do, then check

    Each activity (find the bug, fill the blanks, put in order, match pairs) is checked when you press Check answer, followed by an explanation.

  • Fresh order each time

    Items are shuffled on every attempt, so retrying tests understanding instead of memory of positions.

  • Skip and hints

    Skip an activity or use a hint when one is available. Skipped activities count as skipped in your results.

  • Saved on your device

    Scores and streaks are stored in your browser only. There is no account.

Topics covered

  • Logic errors
  • Default arguments
  • File handling
  • Data processing
  • Built-ins

Python learning roadmap

Want to learn more? Python Functions Explained: Arguments, Scope and Common Traps