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

20th Jan 2020, 2:12 PM
Jitendra
Jitendra - avatar
1 Respuesta
0
What about PM?
11th Apr 2020, 9:22 PM
OverdrivedProgrammer