+ 1

Military Time (Py)

Hello guys! It is my first time here asking for help. Could, please, someone tell me what am I missing in my code: https://code.sololearn.com/c9VJ4711tqnj/?ref=app Iā€™ve already fixed the possible ā€œbugsā€ of 12:00 AM and 12:00 PM, but it keeps failing in some cases

21st Mar 2020, 2:10 AM
Juan Rodrigues
Juan Rodrigues - avatar
4 Answers
+ 7
Here's a slightly shorter version :) https://code.sololearn.com/cTjMmDD1Ox1d/#py
21st Mar 2020, 4:13 AM
David Ashton
David Ashton - avatar
+ 5
Hereā€™s my try https://code.sololearn.com/cGxwY299Hg6B/?ref=app happy coding šŸ‘Š
21st Mar 2020, 7:00 AM
Douglas
+ 4
Thank you! Iā€™m sorry, Iā€™ve search military, as you suggested, and find the same answer easily. I promise you next time Iā€™ll search before asking
21st Mar 2020, 3:28 AM
Juan Rodrigues
Juan Rodrigues - avatar
+ 4
There you go https://code.sololearn.com/c9ldf8ccO5qi/?ref=app Happy coding šŸ˜Š keep coding šŸ™
21st Mar 2020, 4:14 AM
Alfred Juma
Alfred Juma - avatar