Can anyone help me with this code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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])

12th Apr 2020, 8:43 AM
Ramya Thiurmalisamy
Ramya Thiurmalisamy - avatar
2 Respostas
+ 1
You have only linked the problem. If we are to help you, you have to show us the actual code.
12th Apr 2020, 8:46 AM
HonFu
HonFu - avatar
0
12th Apr 2020, 8:51 AM
Ramya Thiurmalisamy
Ramya Thiurmalisamy - avatar