+1

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

Sofonias

5 Answers

New Answer

+4

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

+1

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.

+1

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

+1

Sofonias You're welcome.

0

Sofonias I edited my answer, check in the begining.