SHARE
TWEET

Exercício 7

Mary-br Jul 12th, 2019 (edited) 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top