segundos_totales=int(input("Ingrese los segundos. "))

horas, segundos_restantes=divmod(segundos_totales, 3600)

minutos, segundos=divmod(segundos_restantes, 60)

print(f"los segundos totales {segundos_totales} equivalen a {horas} horas, {minutos} minutos y {segundos} segundos")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: