Practice Makes Perfect 5/15


#1


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


Hi !
 My code is  :

def factorielle(x):
    if x == 0 or x == 1:
        return 1
    else:
        return x * factorielle(x - 1)

**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.** 
 
Waiting for your help.
Thanks


#2

Problem Resolved.
Thanks


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.