Python Program to Convert hours into seconds
Generally 1 hour has 60 minutes. 1 minute has 60 seconds. In the solution we multiply value with 60*60 because of above values. Then the code is given below that converts hours into seconds.
Input:
2
Output:
7200
Explanation:
1 hour = 60 minutes, 1 minute = 60 seconds then
2*60*60 = 7200 seconds.
Code:
hours=int(input())
print(hours*60*60)
Note:
Hello Guys, Don't Stop Learning keep Going..............