Skip to main content

Practice ยท 4 of 4

Bug Hunt 4: The Shared Default

Every call to add_task seems to remember previous calls โ€” tasks pile up across calls. Fix WITHOUT removing the default: make each call start from a fresh list (or make the parameter required).

Difficulty: beginner

Back to lesson: Practice: Bug Hunt โ€” Repair Broken Programs