You are viewing a single comment's thread. Return to all comments →
from datetime import datetime def timeConversion(s):
a = datetime.strptime(s, "%I:%M:%S%p") return a.strftime("%H:%M:%S")
if name == 'main':
s = input() result = timeConversion(s) print(result)
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
from datetime import datetime def timeConversion(s):
if name == 'main':