Advertisement
Mary-br

Exercício 7

Jul 12th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. a = int(input("Entre com o valor em segundos: "))
  2. h = a // 3600
  3. a_rest = a % 3600
  4. m = a_rest // 60
  5. a = a_rest % 60
  6. print(f"{h:.1f} horas, {m:.0f} minutos, {a:.0f} segundos. ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement