- 1

else

it always says that else invalid syntax???

22nd Jan 2019, 12:06 PM
VSLV
VSLV - avatar
4 ответов
0
What language? Your question is too vague. https://www.sololearn.com/discuss/1316935/?ref=app
22nd Jan 2019, 12:20 PM
Lambda_Driver
Lambda_Driver - avatar
0
puthon 3.7.2 >>>> x = 4 >>>>if x == 5: print("Yes") >>>>else: print("No") SyntaxError: invalid syntax I already understood, but thanks
22nd Jan 2019, 12:31 PM
VSLV
VSLV - avatar
0
Looks good. I tried it and got no error. Is that the complete code?
22nd Jan 2019, 12:38 PM
Lambda_Driver
Lambda_Driver - avatar
0
Yes its all. my wrong is that i wrote else in a new line :/
22nd Jan 2019, 12:42 PM
VSLV
VSLV - avatar