Military time code coach problem

Came up with the names of the variables along the way so dont scold me for it. Used basic py code nothing special. First 2 tests worked but 3 and 5 didn't and they were hidden so I couldn't figure it out. Any ideas? Thanks in advance. https://code.sololearn.com/cH9OKKTQiD2a/?ref=app

1/27/2020 5:32:39 PM


5 Answers

New Answer


You need trailing zeros for 0 to 9 AM. eg. 1:15 AM => 01:15 https://www.sololearn.com/Discuss/2131606/?ref=app https://www.sololearn.com/Discuss/2144915/?ref=app https://www.sololearn.com/Discuss/2105377/?ref=app


I didn't want external references for the code but thanks anyway. Just wanted to figure out what was wrong with MY code so I can improve myself and not make the same mistake again.


Yeah that's right! Thanks man. Appreciate it.


Sofonias You're welcome.


Sofonias I edited my answer, check in the begining.