[Solved] Proper if..else syntax in Python
The correct syntax is if condition: # stuff elif other: # stuff elif some_other: # stuff else: # stuff Note that else does not get any explicit condition, it is the catch-all if none of the above conditions were True. 3 solved Proper if..else syntax in Python