2022-10-20 20:16:01 +00:00
|
|
|
secs = int(input('Segundos a converter para horas, minutos e segundos? '))
|
|
|
|
s = secs % 60
|
|
|
|
mins = secs // 60
|
|
|
|
m = mins % 60
|
|
|
|
h = mins // 60
|
2022-10-11 19:27:51 +00:00
|
|
|
|
2022-10-20 20:16:01 +00:00
|
|
|
|
|
|
|
print("{:02d}:{:02d}:{:02d}".format(h, m, s))
|