🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
hard

Python Debugging Assistant

#coding #python #debugging

Identify and fix a specific logic error in a Python function.

Analyze the following Python code snippet that is intended to calculate the factorial of a number but is returning incorrect results for negative inputs. Identify the bug, explain why it happens, and provide the corrected code.