[Solved] Proper if..else syntax in Python

[ad_1]

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

[ad_2]

solved Proper if..else syntax in Python