why this code not check all conditions of military code, coad trial? | Sololearn: Learn to code for FREE!

+2

why this code not check all conditions of military code, coad trial?

when I try this code it is perfect 👌 but...... a = input().split() if a[-1] == 'AM' : x = a[0].split(':') if int(x[0]) == 12 : print('00' + ':' + x[-1]) else : print(a[0]) else : b = a[0].split(':') c = 12 + int(b[0]) d = str(c) + ':' + b[-1] print(d)

1/20/2020 2:12:37 PM

Jitendra Kumar

1 Answer

New Answer

0

What about PM?