+ 1
Seems to be working fine in my computer but not here.
Syntax error. Program:12 hr to 24 hr format https://code.sololearn.com/ciaH18Cbng1a/?ref=app
8 Réponses
+ 4
You forgot a parenthese in both of the last two print statements.
+ 3
else:
if l[0]=='12':
l[0]='00'
print (str(l[0])+':'+str(l[1]))
if int(l[0])<10 and int(l[0])>0:
print ("0"+str(l[0])+str(l[1]))
+ 1
1. What should the code do?
2. What was the error message?
+ 1
you got some probs with brackets..
not that big thing
0
Should convert 12 hr time to 24 hr format
0
Oma Falk i tried still error
0
Aymane Boukrouh syntax