🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
hard

Debug a Python Function

#coding #debugging #python #logic

Analyze a provided code snippet to find logical errors and suggest fixes.

I have a Python function that is supposed to calculate the factorial of a number but returns incorrect results for inputs greater than 5. Here is the code: [PASTE CODE]. Analyze the logic, identify the bug, and provide the corrected code with an explanation of what went wrong.