0

What is the problem please help me i ama noob

from datetime import time x=input() def conversion(x): if(x[:-2] == "AM" and x[:2] == "12" ): return "00"+ x[2:-2] elif x[-2::]=="AM": return x[:-2] elif (x[:-2:] == "PM" and x[2:-2]=="12"): return x[:-2] else: return x(int(x[:2]))

12th Jan 2020, 5:19 AM
Sultan
2 odpowiedzi