0

What is wrong with this code? Code coach is giving three hidden test fails

a=input() b=int(a[0:2]) c=str(b+12) d=str(a[2:5]) def time(): if a[6]=='A': print(a[0:5]) elif a[6]== 'P': print(c+d) if a[0:2]=='12'and a[-2]=='A': print('00'+d) else: time()

27th Mar 2020, 5:01 AM
Mujeeb Rahman
Mujeeb Rahman - avatar
0 Antworten