how to get sum of each digits when it is in time format in python code example Example: sum of any numbers in python sum(list(map(int,input().split())))