+ 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 odpowiedzi
+ 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