Advertisement
Guest User

duvida

a guest
Jan 21st, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. s = float(input('Por favor, entre com o número de segundos que deseja converter:'))
  2. conv0 = s/60
  3. conv1 = s/60
  4. conv2 = conv1/60
  5. conv3 = conv2/24
  6. conv4 = (s/24)/216000
  7.  
  8. print(conv4)
  9. print('{:.0f} dias, {:.0f} horas, {:.0f} minutos e {:.0f} segundos.'.format(conv3,conv2,conv1,conv0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement