+ 1

Why is this causing a syntax error?

I have no idea why this is showing a syntax error. http://www.sololearn.com/app/JUMP_LINK__&&__python__&&__JUMP_LINK/playground/c0tN7dOqZz15/ Please tell me why. Thank you in advance.

31st Aug 2016, 9:24 AM
Raiyan Ahmed
Raiyan Ahmed - avatar
2 Respuestas
+ 1
The variable a is declared as a string at the beginning. You should turn it into an integer using the int () function after the input.
31st Aug 2016, 10:56 AM
Andrej Todić
Andrej Todić - avatar
+ 1
just convert input to int before comraing , try this a =input("") if int(a) > 10: print("you are awesome")
31st Aug 2016, 4:55 PM
beauty1234