What's wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's wrong with my code?

Hello Guys! I can't figure out the bug, According to me I'm getting correct output everytime but when i try running test cases i get only 3/5 correct cases What's the bug in it? https://code.sololearn.com/cg84IkCU60ou/?ref=app

16th May 2020, 8:32 PM
Kanishk Mewal
Kanishk Mewal - avatar
8 Answers
+ 2
if int(m[0]) <= 10 and int(m[0]) >= 1: print('0'+ n)
16th May 2020, 9:29 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Incorrect output format for the hours of 1:00 AM - 9:59 AM outputs 1:00 instead of 01:00
16th May 2020, 8:36 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Did you test your code before trying to submit it? Now it doesn't output the hour at all for that range 1:30 AM outputs :30 now.
16th May 2020, 9:06 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
The print statement in the line before the error is missing a closing ')', but your output problem remains at this point.
16th May 2020, 9:13 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
It Woked ChaoticDawg Tysm :]
16th May 2020, 9:34 PM
Kanishk Mewal
Kanishk Mewal - avatar
0
Yea i got that mistake i tried some more changes now im getting syntax error in the "elif" statement i can't see it though
16th May 2020, 9:08 PM
Kanishk Mewal
Kanishk Mewal - avatar
0
Well Thank Again for fixing Error but I can't figure out the correct code :/
16th May 2020, 9:19 PM
Kanishk Mewal
Kanishk Mewal - avatar
0
Oh lemme try this
16th May 2020, 9:30 PM
Kanishk Mewal
Kanishk Mewal - avatar