Conditionals & Control Flow


#1



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


File "python", line 3
if the_flying_circus() not 5==7 :
^
SyntaxError: invalid syntax


# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if  the_flying_circus() not 5==7 : 
        return False 
    elif the_flying_circus() 5==5 or 7<6:
        return  False 
    else the_flying_circus()  5==5 :
        return True


#2

i Tried this learn from the other

# Make sure that the_flying_circus() returns True
def the_flying_circus(answer):
    if  answer  not 5==7 : 
        return False 
    elif answer  5==5 or 7<6 :
        return  False 
    else answer  5==5 :
        return True

#3

We leave else statements blank.


#4

Like this

def the_flying_circus(answer):
if answer not 5>7 :
return False
elif answer 5==5 or 7<6 :
return False
else :
return True


#5

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