0
why Gotham city task in code coach code 3 and 4 is not working ?
# DC universe #Gotham city x=int(input("")) def safe_city(x): if x<5: return 'I got this!' if 5<=x<=10: return 'Help me Batman ' if x>10: return 'ok' else: return 'city os safe' print(safe_city(x))
3 odpowiedzi
+ 1
//Try out this :-
c = int(input(""))
if c < 5:
print("I got this!")
elif c >=5 and c<=10:
print("Help me Batman")
else:
print("Good Luck out there!")
//your bug is wrong string i.e., city os safe
+ 1
Abhay
task 3 and 4 are locked why ?
0
problem is solved Thanks bro