SyntaxError: invalid syntax for no apparent reason

0

In python, I was doing a function in trying to make a client program:

AndIgotthiserror,notknowingwhy:

Can someone help me?

    
asked by anonymous 18.06.2018 / 00:44

1 answer

3

The if and else are without the colon.

Example:

if(condição):
   # Código
elif(condição):
   # Código
else:
   # Código
    
18.06.2018 / 00:49