I\'m trying to convert times from 12 hour times into 24 hour times...
06:35 ## Morning 11:35 ## Morning (If m2 is anywhe
time = raw_input().strip() # input format in hh:mm:ssAM/PM t_splt = time.split(':') if t_splt[2][2:] == 'PM' and t_splt[0] != '12': t_splt[0] = str(12+ int(t_splt[0])) elif int(t_splt[0])==12 and t_splt[2][2:] == 'AM': t_splt[0] = '00' t_splt[2] = t_splt[2][:2] print ':'.join(t_splt)