Question: 2.17 Time in Seconds use Python code Write a program that reads values representing a time duration in hours, minutes, and seconds and then prints
2.17 Time in Seconds
use Python code
Write a program that reads values representing a time duration in hours, minutes, and seconds and then prints the equivalent total number of seconds. (For example, 1 hour, 28 minutes, and 42 seconds is equivalent to 5322 seconds.)
Example:
Enter the number of hours: 1 Enter the number of minutes: 28 Enter the number of seconds: 42 Total seconds: 5322
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
