open_in_new
content_copy
time = "01:34:11" sum(x * int(t) for x, t in zip([3600, 60, 1], time.split(":")))