+ 1
What's wrong? Military time
I think all is well https://code.sololearn.com/c0Hx2B9DLHyV/?ref=app https://code.sololearn.com/c0Hx2B9DLHyV/?ref=app Input: f'{time} AM or PM'
5 Answers
+ 1
For input single hour digit append 0 ex: 1:00 AM => 01:00
For input 12:00 PM=> output should be 12:00, but your 00:00 check it again.
Hope it helps..
+ 1
Thanks
+ 1
None that's a 12hour clock. But problem states that convert 12hr format to 24 hour format.. read again here and examples also to understand it ,if this is about code coach problem of :
https://www.sololearn.com/coach/70?ref=app
+ 1
You're welcome...