Hi,

I have a bit of a problem on the French version of this exercice (15.5 Factor), I keep getting the same error:*Oups, merci de réessayer. Votre fonction a échoué sur 1 comme entrée car votre fonction indiqueOups, merci de réessayer. Votre fonction a échoué sur 1 comme entrée car votre fonction indique "global name 'reponse' is not defined" error.**Oops, please try again. Your function failed with 1 as entry because you function state "global name 'reponse' is not defined" error.*

I tried most of the function that are on this Discuss community Forums. Even when I import the math formula it send back the same error.

Does anyone can't get past that too?

For information, here is the formula that work in the CodecademyLab:

def factor(n):

----if n > 1:

--------return n * factor(n - 1)

----elif n < 1:

--------return -n * factor(-n - 1)

----elif n == 0:

--------return 1

----else:

--------return 1

x = raw_input("Nombre pour factorielle? ")

print factor(int(x))

Thank you