Advertisement
homeworkhelp111

Untitled

Apr 12th, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. init_seconds = 4503
  2. hours = init_seconds//3600
  3.  
  4. seconds = init_seconds % 3600
  5. minutes = seconds//60
  6.  
  7. seconds = seconds%60
  8.  
  9. print("{} seconds is {} hours, {} minutes and {} seconds".format(init_seconds,hours,minutes,seconds))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement