keymasterviriya1150

python101_newbie

Apr 14th, 2023
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # h = int(input())
  2. # m = int(input())
  3. # s = int(input())
  4.  
  5. h = 3
  6. m = 2
  7. s = 2
  8. # 1hr =  60min
  9. # 1min = 60sec
  10.  
  11. minOfHour = h * 60
  12. secOfHour = minOfHour * 60
  13.  
  14. secOfMin = m * 60
  15.  
  16. # print("minOfHour:", minOfHour)
  17. # print("secOfHour:", secOfHour)
  18. # print("secOfMin:", secOfMin)
  19.  
  20. output = secOfHour + secOfMin + s
  21. print(output)
  22.  
Tags: problem
Advertisement
Add Comment
Please, Sign In to add comment