0
Can anyone help me with this code?
This is from code coach in python. Only my 2 test cases are correct remaining 3 are incorrect. Military Time program. hour=input() if hour[-2] =="A": print (hour[:5]) else : hour=hour.replace(str(hour[:2]),str(12+int(hour[:2]))) print(hour[:5])
2 Answers
+ 1
You have only linked the problem.
If we are to help you, you have to show us the actual code.
0
HonFu ok