You are viewing a single comment's thread. Return to all comments →
python solution
def timeConversion(s): # Write your code here HH,MM,SS=map(int,s[:-2].split(":"))
if 'AM' in s and HH==12: HH=0 elif 'PM' in s and HH<12: HH=HH+12 return((f"{HH:02}:{MM:02}:{SS:02}"))
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 →
python solution
def timeConversion(s): # Write your code here HH,MM,SS=map(int,s[:-2].split(":"))