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