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()
1 Answer