+ 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 Odpowiedź
0
What about PM?