How is this working? Conditionals and control flow - 15/15


#1

Make sure that the_flying_circus() returns True

def the_flying_circus():
    if (5 < 6) and (6 > 5):    
        print "The circus is flying"
        return True
    elif 98 != 98:
        print "The circus is not flying"
        return False 
    else:
        print "There is not circus"

#2

I apologize if this is the incorrect place to post this.

I just needed an answer and couldnt find a more appropriate place.


#3

Since 5 will always be less than 6 and 6 will always be greater than 5, your elif and else statements are never executed.


#4

please format your code properly.

Do the following:

  • copy your code and paste it here
  • select the whole code
  • click on the </> above

you can edit your code


#5

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