+ 2
Help me!!!(Gotham City!) - Code coach(EASY)😭
Whats wrong in this code... x = int(input()) if 0<x<5: print("I got this!") elif 5<=x<=10: print("Help me Batman") elif x > 10: print("Good Luck out there!")
6 Answers
+ 2
It's showing 1 wrong case in the hidden case...
+ 2
Isn't 4<n<11 also same as 5<=n<=10??
+ 1
In your code n doesn't accounts for 0 as you have 0<n<5. It should be 0<=n<5 or simply n<5.
0
Same for integer n
0
a=int(input())
if a<5:
elif a<11:
else:
0
p = int(input())
if p < 5:
print('I got this!')
elif p >= 5 and p < 10:
print ('Help me Batman')
else:
print ('Good Luck out there!')