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]))
2 odpowiedzi
+ 4
What is the error you get ? Did you try the solutions discussed in previous posts ?
https://www.sololearn.com/discuss/2110944/?ref=app
https://www.sololearn.com/discuss/2118320/?ref=app
https://www.sololearn.com/discuss/2105377/?ref=app
https://www.sololearn.com/discuss/2130353/?ref=app
https://www.sololearn.com/discuss/2119269/?ref=app
https://www.sololearn.com/discuss/2118405/?ref=app
https://www.sololearn.com/discuss/2104858/?ref=app
https://www.sololearn.com/discuss/2117003/?ref=app
https://www.sololearn.com/discuss/2127547/?ref=app
https://www.sololearn.com/discuss/2105903/?ref=app
+ 4
https://code.sololearn.com/cTjMmDD1Ox1d