The Big If help


#1

The instructions
Write an if statement in the_flying_circus(). It must include:

if, elif, and else statements;
At least one of and, or, or not;
A comparator (==, !=, <, <=, >, or >=);
Finally, the_flying_circus() must return True when evaluated.
Don't forget to include a : after your if statements!

Here is my Code:

def the_flying_circus(num):
if num == 23:
print "Welcome to the other side"

elif  23 and 23:
    print "You still do not understand"
else:
    print "That is not a Number!"

print the_flying_circus(23),

It works in the console but it says that the_flying_circus() can't take any arguments
what am I doing wrong


#2

same problem this one is not well explained


#3

yea i tried doing it with out any arguments and putting in return commands as true instead of print commands but it say "Oops, try again. The following exception was raised when calling the_flying_circus(): RuntimeError: maximum recursion depth exceeded" not knowing what this means and since it wont take arguments i cant get past this

UPDATE: i figrued it out

Make sure that the_flying_circus() returns True

def the_flying_circus():
if 30>20 or 20<30:
print "that is wrong"
return True
# Start coding here!
# Don't forget to indent
# the code inside this block!
elif the_flying_cicrus()>5 or the_flying_circus() == 10:
print "that is right"

    # Keep going here.
    # You'll want to add the else statement, too!
else:
        print "thats not a number"
        return True