+ 1
I have downloaded python 3.6. If i used else with if . syntax error comes in else. Why this happen any idea. Please.
8 Respostas
+ 1
y=4
if y==3:
print('false')
else: here gives syntax error
+ 1
y=4
if y==3:
print('false')
else: here gives syntax error
+ 1
I have tried that also
+ 1
before writing anything else after else it shows invalid syntax.
0
provide code that gives you error
0
you've no proper intendation.Put 4 spaces before print statement and try executing it again.
0
Do you have anything after the else ? If not, this is the error
0
put you code in the code playground and we'll see what happens