The Big If


#1



The Big Iff


The console is returning this:
File "python", line 7
else
^
SyntaxError: invalid syntax


I was expecting it to return true.


L = 5
def the_flying_circus(L):
    if L == 9:    
        return True
    elif L > 6:
        return False
    else 
        return True


#2

missing colon after else keyword


#3

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