New course! Every coder should learn Generative AI!
Try a free lesson0
What's wrong with my solution?
It passes 2 cases. https://code.sololearn.com/cd37WxvZKP3a/?ref=app
3 Answers
+ 1
ChaoticDawg thank you🙏
0
Input "1:30 AM" and see if you can recognize the issue when compared to the expected output format of XX:XX
The issue is present from 1:00 AM - 9:59 AM
0
You also have an issue with 1:00-9:59 PM in which the hour is including the colon making it crash.