We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
deftimeConversion(s):# Write your code heretime=s[:-2].split(":")ifs[-2:]=="AM":iftime[0]=="12":time[0]="00"return":".join(time)else:iftime[0]=="12":passelse:time[0]=str(int(time[0])+12)return":".join(time)
Cookie support is required to access HackerRank
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 →