Syntaxerror: invalid syntax for no apparent reason

Asked

Viewed 370 times

0

In python, I was doing a function in an attempt to make a client program: inserir a descrição da imagem aqui

And I made this mistake, not knowing why:

erro

Can someone help me?

1 answer

3

The if and the else are without the two-point sign.

Example:

if(condição):
   # Código
elif(condição):
   # Código
else:
   # Código

Browser other questions tagged

You are not signed in. Login or sign up in order to post.