When I execute the code as listed below, I get the first error message. I thought that it would work correctly and output "success", since the "if"and "elif" statements are both false. When I first did this code (without the "return the_flying_circus()" at the end), I got the second error message. I have 2 questions:
Why do I need this return statement at the end of the code?
What in my code is recursive? Why is there a "recursion depth" being exceeded? Is it because my code does not resolve in some way?
def the_flying_circus(): if 'apples' == 'bananas': # Start coding here! print 'monkey butts' elif 99**1 != 10**2 - 1: print 'balls' else: print 'success' # Don't forget to indent # the code inside this block! return the_flying_circus()