What's wrong with the else statement?


#1

It says I have invalid syntax even though this is how all other else statements are.


else:
       #python  code


#2

So you have something like

Python Example:

if True:  # Very important to start with the if
    continue
else:
    continue

while True:  # Can also use it on a while statement
    continue
else:
    continue

for x in range(2):  # Heck you can use it with for too
    continue
else:
    continue

#3

Yes I guess so yeah....