🏠 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
medium

Debug a Python Script

#coding #python #debugging

Identify and fix logical errors in a provided code snippet.

Review the following Python code snippet intended to calculate the factorial of a number. Identify why it returns the wrong result for n=0 and provide the corrected code. result = 1 for i in range(1, n): result *= i return result