🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links
Intermediate

Debug a Python Script

#python #debugging #coding

Find and fix a specific error in a code snippet.

I am receiving an 'IndexError: list index out of range' in my Python script. The code is: data = [1, 2, 3]; print(data[3]). Explain why this error happens and provide the corrected code.