Ne peux valider (encore) le 8 2 5


#1



https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-py0yl/0/5?curriculum_id=5370f030fed2a866a2000001#

Oups, merci de réessayer. Votre fonction a échoué sur 1 comme entrée car votre fonction indique "global name 'reponse' is not defined" error.


def factorielle(x):
    reponse = 1
    for i in range(1, x + 1):
        reponse *= i
    return reponse


#2

There is a bug in the submission correctness test (SCT).

Workaround to add to the end of the code ...

# To pass, add this workaround
reponse = factorielle

#3

thank you for ur answer