+ 2
Military time problem
First two cases only solve Have you any idea about other three cases. I try this date=input() print(str(int(date[0:2])+12)+date[2:5]) if date[6:8]=="PM" or date[6:8]=="pm" and "00"<=date[0:2]<="11" else print(date[0:5])
3 Antworten
+ 3
if hour=="12" and p_day=="AM":
print("00:{}".format(minutes)).
0
Also there can be problem like, 1:10 instead of 01:10