What is wrong with this code? Code coach is giving three hidden test fails | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers