+ 1
Question
>>> num=7 >>> if num==5: print(“number is 5”) else: Syntax error: invalid syntax
2 Respuestas
+ 3
Is there a line after this line?
else:
If not, remove the else or:
else:
pass
+ 1
Just after else it gives a syntax error
>>> num=7 >>> if num==5: print(“number is 5”) else: Syntax error: invalid syntax