Can someone help with Gotham City challenge I tried this with Python it shows test case 3 and 4 cannot be done | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Can someone help with Gotham City challenge I tried this with Python it shows test case 3 and 4 cannot be done

x=int(input()) if(x<5): print("I got this!") elif(x>4 and x<11): print("Help me Batman") else: print("Good luck out there") This is the code

30th Sep 2020, 5:04 AM
Vaishak S Kumar
Vaishak S Kumar - avatar
3 ответов
+ 3
"Good luck out there" Change it to this: "Good Luck out there!"
30th Sep 2020, 5:12 AM
Pranav Kalro
Pranav Kalro - avatar
+ 2
Read the problem properly. Details matter. In the else block, inside string to be printed, the 'l' in "luck" is uppercase (i.e. it should be "Luck") and there is an exclamation mark after "there".
30th Sep 2020, 5:13 AM
XXX
XXX - avatar
0
Thank You Guys I'll try it
1st Oct 2020, 2:29 AM
Vaishak S Kumar
Vaishak S Kumar - avatar