0

Need help on Military Time

Why my code doesn't work? time = input().replace('12', '0') lst = time[:5].split(':') if time[-2:] == 'AM': print(time[:5]) else: print(str(int(lst[0])+12)+':'+lst[1])

15th Sep 2020, 10:10 AM
Ranier Lendon Completado
Ranier Lendon Completado - avatar
1 Odpowiedź
15th Sep 2020, 12:12 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar