The big if


#1


https://www.codecademy.com/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096#

ERROR MESSAGE: Oops, try again. the_flying_circus() should return True, instead it returned: 'true'


how to solve this? any tips?


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if 9 > 1: 
        print "true"# Start coding here!
        return 'true'# Don't forget to indent
        # the code inside this block!
    elif 1 > 9:
        print "false"
        return 'false'# Keep going here.
        # You'll want to add the else statement, too!
    else:
        return True


#2

the else if should also return True.
I had problems with the question too before and i looked it up and some code that worked was :
def the_flying_circus():
if 3 == 3 or 4 != 5:
print('The flying cirus is awesome')
return True
elif 3 > 2 and 4 < 6:
print ('The flying circus is on point')
return True
else:
print ('The flying circus is lame')
return False
the_flying_circus()
Hope that helped and thank you to whoever i actually got the code from :smiley:


#3

Thank you it worked!!!


#4

You are welcome! :smiley: <3


#5

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