BugHunt

#30DaysOfDebugging

30 Days of Debugging: Python

One bug a day, for 30 days. Each day is a short piece of Python that almost works, the symptom it causes, and tests that pass once you have fixed it. It takes most people five to ten minutes.

The first three weeks are the bugs every beginner meets. The last stretch is medium level: boundaries, rounding, shared state and an interview problem. Go faster if you like; the days are a pace, not a lock.

Your progress

0 of 30 days

Start Day 1 →
  1. 1Day 1 · String checker throwing IndexError
  2. 2Day 2 · Range calculator missing numbers
  3. 3Day 3 · Sorting function returning undefined
  4. 4Day 4 · Formatter crashing on valid prices
  5. 5Day 5 · String casing remains lowercase
  6. 6Day 6 · Text parser returning wrong counts
  7. 7Day 7 · Array access throwing TypeError
  8. 8Day 8 · Missing config key crashes the lookup
  9. 9Day 9 · Averages losing precision
  10. 10Day 10 · Security rule bypassing payment checks
  11. 11Day 11 · Retry mechanism failing instantly
  12. 12Day 12 · Function crashing when no match found
  13. 13Day 13 · Tag list vanishes after adding a tag
  14. 14Day 14 · Countdown never reaches zero
  15. 15Day 15 · Name formatter crashes on the first letter
  16. 16Day 16 · Birthday calculator crashes on the form input
  17. 17Day 17 · Vowel counter skips capital letters
  18. 18Day 18 · Shopping total crashes at the end of the list
  19. 19Day 19 · Price parser rejects prices with cents
  20. 20Day 20 · AI Attempt: The palindrome checker
  21. 21Day 21 · AI Attempt: FizzBuzz never says FizzBuzz
  22. 22Day 22 · Validator failing on exact boundariesMedium
  23. 23Day 23 · Total calculation failing with TypeErrorMedium
  24. 24Day 24 · Difference calculation returning invalid numbersMedium
  25. 25Day 25 · Security check allowing invalid dataMedium
  26. 26Day 26 · Leaderboard calculating wrong winnerMedium
  27. 27Day 27 · Highest temperature reads 0 on a cold dayMedium
  28. 28Day 28 · Login says a registered user doesn't existMedium
  29. 29Day 29 · Grade rounding cheats students out of half a markMedium
  30. 30Day 30 · AI Attempt: The Two Sum TrapMedium

How it works

Prefer JavaScript? 30 Days of Debugging: JavaScript