Advertisement
simeonshopov

Sum seconds

Sep 16th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. first = float(input())
  2. second = float(input())
  3. third = float(input())
  4.  
  5. total_time = first+second+third
  6. minutes = total_time//60
  7. seconds = total_time%60
  8.  
  9. if seconds < 10:
  10.   print(f"{minutes:.0f}:0{seconds:.0f}")
  11. else:
  12.   print(f"{minutes:.0f}:{seconds:.0f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement