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

Python Code Debugging

#coding #python #problem-solving

Identify and fix a bug in a Python script.

Review the following Python function intended to calculate the factorial of a number. Identify the logic error, explain why the current code fails for negative inputs or zero, and provide a corrected version of the function with appropriate error handling.