Solució 1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Llegim els segons:
segons = int(input('Escriu els segons: '))
# Fem els càlculs:
hores = segons // 3600
segons = segons - hores*3600    # segons que no fan una hora
minuts = segons // 60
segons = segons - minuts*60     # segons que no fan un minut
# Escribim el resultat:
print('Hores:', hores, 'minuts:', minuts, 'segons:', segons)
# Comprovació:
print('Segons totals:', hores*3600 + minuts*60 + segons)