+ 1
else: Syntax error
What am doing wrong here? >>> num = 7 >>> if num == 5: print("Number is 5") else: SyntaxError: invalid syntax
2 Respuestas
+ 2
yes it is
if (a==b.):
codes here true
else:
codes here false
+ 1
The else doesn't have to be indented
I suggest you to use a IDLE instead of an prompt