+ 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!")

4th Mar 2022, 6:09 AM
Rafin
Rafin - avatar
3 Respostas
+ 2
#line1 x = int(input()) #line6 elif x>10:
4th Mar 2022, 7:03 AM
Shadoff
Shadoff - avatar
+ 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
4th Mar 2022, 6:28 AM
HungryTradie
HungryTradie - avatar