Silly syntax error @ line 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Silly syntax error @ line 3

nuber = int(input()) if nuber < 5 : print("I got this!") if nuber >= 5 and nuber <=10 : print("Help me Batman") if nuber > 10 : print("Good luck out there !")

13th Aug 2021, 8:28 PM
Ermias Kebede
Ermias Kebede - avatar
11 Answers
+ 1
Your code seems to have no errors at all
13th Aug 2021, 8:31 PM
Baspberry
+ 1
But it says that it got have error . Would you please check it $gottham city code in code challenge
13th Aug 2021, 9:02 PM
Ermias Kebede
Ermias Kebede - avatar
+ 1
Wow finally it's done thank you very much . I am feeling so hot right now !!!!!! Big thanks
13th Aug 2021, 9:15 PM
Ermias Kebede
Ermias Kebede - avatar
+ 1
Ermias Bibi Note that any trailing spaces present in your output will automatically be trimmed by SL.
14th Aug 2021, 5:03 AM
Calvin Thomas
Calvin Thomas - avatar
+ 1
Ok I got you
14th Aug 2021, 8:43 AM
Ermias Kebede
Ermias Kebede - avatar
+ 1
Calvin Thomas would you please send me the code here ? I am not pro user to continue texting there
14th Aug 2021, 11:27 AM
Ermias Kebede
Ermias Kebede - avatar
0
Ouch, Sololearn is not being really friendly I guess. You have to copy the exact same text that should be printed. The problem was that, 'Good luck out there!' has to be 'Good Luck out there!'. - Capital L 'Luck'
13th Aug 2021, 9:09 PM
Baspberry
0
It says I got this! But mine is too "I got this! " I am getting crazy at sololearn
13th Aug 2021, 9:11 PM
Ermias Kebede
Ermias Kebede - avatar
0
Ermias Bibi This code will work: nuber = int(input()) if nuber < 5 : print("I got this!") elif nuber >= 5 and nuber <= 10 : print("Help me Batman") elif nuber > 10 : print("Good Luck out there!")
13th Aug 2021, 9:12 PM
Baspberry
0
Ermias Bibi It's my pleasure
13th Aug 2021, 9:17 PM
Baspberry
0
Ermias Bibi Which code?
14th Aug 2021, 11:49 AM
Calvin Thomas
Calvin Thomas - avatar