🏠 Hem
Benchmarkar
📊 Alla benchmarkar 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List-applikationer 🎨 Kreativa fria sidor 🎯 FSACB - Ultimata uppvisningen 🌍 Översättningsbenchmark
Modeller
🏆 Topp 10 modeller 🆓 Gratis modeller 📋 Alla modeller ⚙️ Kilo Code
Resurser
💬 Promptbibliotek 📖 AI-ordlista 🔗 Användbara länkar
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.