🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki
easy

Fonction Factorielle en Python

#python #mathématiques #algorithme

Écrire une fonction Python pour calculer une factorielle.

Écris une fonction Python nommée 'calculer_factorielle' qui prend un entier positif 'n' en paramètre et renvoie sa factorielle. Assure-toi de gérer le cas où 'n' est égal à 0 en retournant 1. Inclue des commentaires explicatifs dans le code.