easy
Fonction Factorielle en Python
Écrire une fonction Python pour calculer une factorielle.
📝 Prompt-Inhalt
É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.