Advertisement
Guest User

timetest

a guest
Nov 4th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. sec = int(input('write time sec '))
  2. sec2 = sec % 60
  3. minutes = sec // 60 % 60
  4. hours = sec // 3600
  5. print('results', hours, 'hours', minutes, 'minutes', sec2, 'sec')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement