Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input("Entre com o valor em segundos: "))
- h = a // 3600
- a_rest = a % 3600
- m = a_rest // 60
- a = a_rest % 60
- print(f"{h:.1f} horas, {m:.0f} minutos, {a:.0f} segundos. ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement