+ 2
Can somebody explain this syntax error on my code for me?
I need some help with python https://code.sololearn.com/csnCriLU8QAK/?ref=app
9 Respostas
+ 3
Thanks Cbr✔[ Most active ] and n3v375
+ 2
ok thanks
+ 2
so when ever its a if or else statement it needs colons?
+ 2
ok
+ 2
i will make sure to do the lesson
+ 2
i recreated it and it works thanks for the help
+ 1
#No colons
#No tabs
x = 17
if x > 8:
print('17 is greater then 8')
if x-8 == 1:
print('17- 8 equals 1!')
else:
print('17-8 does not equal 1')
0
You forgot the colon ( : ) in your if statement