import datetime sec = int(input('Enter a number of second: ')) convert = str(datetime.timedelta(seconds = sec)) print(sec, 'seconds is:', convert)