I really NEED HELP


#1



(popup message) Oops, try again. The following exception was raised when calling the_flying_circus(): RuntimeError: maximum recursion depth exceeded
(console) None

I thought it would work?


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if the_flying_circus():
        print "i might do sometihng"       
    elif  the_flying_circus():
        True or False   
    else: 4<5


#2

You maybe didn't got the whole idea of the conditional statements, but don't worry, they aren't hard. I really hate the example that Codecademy gives to you at the instructions, because of that absolutely isn't the right syntax for if- statements.

 if this_might_be_true():
     print "This really is true."
elif that_might_be_true():
     print "That is true."
else:
     print "None of the above."

DON'T DO it like this, the conditional statements are utilized to check something, and give an output if the statement is True, there is an example for you.

def example():
     if 1 > 2:
          print "The example was succesful!"


 #As I told, if the statement is True, you get the output to the console.

     elif 1 < 2:
          print "Something went wrong."

 #This one isn't True, so the output is "The example was Succesful."

Now you have to do the same thing inside the_flying_sircus, but you can check whatever you want!


#3

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