+ 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.
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.
+ 1
just convert input to int before comraing , try this
a =input("")
if int(a) > 10:
print("you are awesome")