Runtime error on The Big If


#1

The Big If

The following exception was raised when calling the_flying_circus(): RuntimeError: maximum recursion depth exceeded while calling a Python object

Hurray



# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 4<5 and 3>1:  
      print "Hurray"# Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif 5!=5 or 78<10:
      print "LOL"
    else :
      print "zilch"
    the_flying_circus()  
        # Keep going here.
        # You'll want to add the else statement, too!



#2

the_flying_circus()

you should call the function outside of that function.


#3

Great! Thank you so much. It worked perfectly fine


#4

Thank you very much it was helpful


#5

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