Ne peux valider (encore) le 8 2 5


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


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


thank you for ur answer