🔧 Paper 2 Practice

Python Code Fixer

This program has 10 bugs! Fix each error to make the rainbow wavelength converter work correctly.

0
Fixed
10
Remaining
0
Attempts
🐍 rainbow_wavelength.py

🐛 Bugs to Fix

🏆

Challenge Complete!

0/10

Great debugging practice!

0
First Try
0
With Hints
0
Total Attempts

💡 Key Learning Points

Syntax Errors: Missing quotes, colons, brackets - Python can't understand the code
NameErrors: Using undefined variables or wrong capitalisation (false vs False)
ValueErrors: Wrong data type for an operation (e.g., int("Red"))
Logic Errors: Code runs but produces wrong results - hardest to find!