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))

28th May 2020, 4:32 PM
Somil Khandelwal
3 Antworten
+ 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
28th May 2020, 4:43 PM
Abhay
Abhay - avatar
+ 1
Abhay task 3 and 4 are locked why ?
28th May 2020, 5:01 PM
Somil Khandelwal
0
problem is solved Thanks bro
28th May 2020, 5:05 PM
Somil Khandelwal