Skip to main content

Practice ยท 1 of 4

Bug Hunt 1: The Missing Variable

This receipt program crashes with NameError. Reproduce it mentally, find the line, and fix it with the SMALLEST change that restores the intended output (three lines).

Difficulty: beginner

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