You are viewing a single comment's thread. Return to all comments →
def timeConversion(s): # Write your code here time_obj = datetime.strptime(s, "%I:%M:%S%p") return time_obj.strftime("%H:%M:%S")
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Time Conversion
You are viewing a single comment's thread. Return to all comments →