+ 1
Gotham city python help
It says line 2 invalid syntax help Code: x = int(input() if x < 5: print ("I got this!") elif x <= 10 and x >= 5: print ("Help me Batman") elif x >= 10: print ("Good luck out there!")
3 Answers
+ 2
#line1
x = int(input())
#line6
elif x>10:
+ 1
G'day Rafin
Syntax error on line ### is often something wrong with the line above. Check line 1.
Have you found the search bar in SoloLearn Q&A (it is the magnifying glass icon at the top of the discuss screen)?
Have you read the FAQ?
Do you know you can link "code bits" or other Q&A posts here (use the plus icon).
https://www.sololearn.com/discuss/1316935/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app