+ 1

Military time Code coach

Could anyone tell me what is the wrong with my code of (Military time code coach) it matches 3 test cases out of five. I have tested it on other interpreter for different inputs , and it gives the desired outputs. This is my code: https://code.sololearn.com/col5zfFSsN8Q/?ref=app Thanks in advance.

15th Sep 2020, 8:53 AM
Bana
Bana - avatar
2 Antworten
+ 3
I believe the issue is that proper military time format has a 0 in front for the time from 12 AM to 9 AM ex: 3:00 AM -> 03:00
15th Sep 2020, 9:05 AM
Kylie
Kylie - avatar
+ 2
Thanks, it works now
15th Sep 2020, 9:21 AM
Bana
Bana - avatar