+ 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
7 ответов
+ 7
Already fixed (:
+ 6
Arsenic 12:00 AM is 12:00?
Do you mean 12:00 PM?
+ 5
Nikolai Ivanov Thanks
+ 4
Use zfill() or add '0' for hours less than 10 (AM).
https://code.sololearn.com/cp5ZR39UjhgV/?ref=app
+ 3
It converts 12:00 AM to 12:00 instead of 00:00
+ 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.