The big f


#1


what is wrong here?!


#2

can you copy your code to the forum so i can run it?


#3

sorry i have reseted the code minutes ago
anyway why would you do that it's wrong anyway


#4

No problem, i hope you solved it now. Well, it is a lot easier to debug when you can run, then just looking at a image of the cdoe


#5

oh
but i am having another problem


#6

here is the new code

def the_flying_circus():
    print "Welcome to the app that i have just created"
    print "First please state your age"
    answer = raw_input ("type your age then press enter to continue").upper()
    if answer == 14 :
        print "okay now we can continue".upper()
    elif answer < 14 or answer > 14 : 
        print "you must be 14 years old to continue".upper()
    else :
        print "please insert your name in order to continue".upper()
        the_fliying_circus()

and it's saying

Oops, try again. the_flying_circus() returned the value None, did you forget to add a return statement?

what should i do


#9

i think the biggest problem you have is your function call:

the_fliying_circus()

that is not the_flying_circus(), there are some typos in there


#10

i don't understand
what do u mean ?


#11

you have some spelling problem in your function call, your function call:

the_fliying_circus()

the correct function call:

the_flying_circus()

#12

i saw that yes and fixed it but yet another problem appease

def the_flying_circus():
print "Welcome to the app that i have just created".upper()
print "First please state your age".upper()
answer = raw_input ("type your age then press enter to continue").upper()

if answer == 14 :
    return "okay now we can continue".upper()

elif (answer < 14) or (answer > 14) : 
    print "you must be 14 years old to continue".upper()

else :
    return True
    print "please insert your name in order to continue".upper()
the_flying_circus()

and shows this message
Oops, try again. The following exception was raised when calling the_flying_circus(): RuntimeError: maximum recursion depth exceeded while calling a Python object


#13

for that i really need to run it in the exercise, can you post the url of the exercise to the forum?


#14

okay here it is
https://www.codecademy.com/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096


#15

this works:

def the_flying_circus():
    print "Welcome to the app that i have just created".upper()
    print "First please state your age".upper()
    answer = raw_input ("type your age then press enter to continue").upper()

    if answer == 14 :
        return "okay now we can continue".upper()

    elif (answer < 14) or (answer > 14) : 
        print "you must be 14 years old to continue".upper()
        return True

    else :
        return True
        print "please insert your name in order to continue".upper()
the_flying_circus()

#16

no it does not
with me


#17

refresh the page, or try a different browser. You seemed to have hit a glitch


#18

i will try google chrome


#19

i would really like to know cozz i started from scratch where oyou pull out that answer=raw_input thing...

according to instructions it appears that it'd need to be much easier than that.. i wouldnt like to copy paste something that moderator give me i would like to get it by myself... but surely this code here is not made by going trough all those previous courses. got somethin new in it...


#20

what i skipped what should i know b4 to do what u did pls tell me i really really wanna understand this by my self so any time at nite i woke up i wanna know whats going on ...


#21

raw_input is a function provided by python, i am sure it is covered in the lessons somewhere at this point.

I am sure there are easier ways, i just made an idea that someone else had work, i didn't design my own idea, i guess then i would a few less lines of code.

What? Do you have code you do not understand?