+ 13

Whats the error with my code (Transform US time to military time)?

Python Coding Coach help Test Case #3 & #5 are failing. https://code.sololearn.com/cPiG9lPvoq35/?ref=app

27th Oct 2020, 12:09 AM
🔥EACY🔥
🔥EACY🔥 - avatar
7 Respostas
+ 7
Already fixed (:
13th Nov 2020, 4:21 PM
🔥EACY🔥
🔥EACY🔥 - avatar
+ 6
Arsenic 12:00 AM is 12:00? Do you mean 12:00 PM?
27th Oct 2020, 9:11 AM
🔥EACY🔥
🔥EACY🔥 - avatar
+ 5
27th Oct 2020, 9:13 AM
🔥EACY🔥
🔥EACY🔥 - avatar
+ 4
Use zfill() or add '0' for hours less than 10 (AM). https://code.sololearn.com/cp5ZR39UjhgV/?ref=app
27th Oct 2020, 4:19 AM
Nikolai Ivanov
Nikolai Ivanov - avatar
+ 3
It converts 12:00 AM to 12:00 instead of 00:00
27th Oct 2020, 12:32 AM
Arsenic
Arsenic - avatar
27th Oct 2020, 3:38 AM
suraj mehra
suraj mehra - avatar
+ 2
Eacy 12:00 PM is noon time whereas 12:00 AM is the start of the day hence should be converted to 00:00 in 24 hour clock.
27th Oct 2020, 9:27 AM
Arsenic
Arsenic - avatar