11. Python Program to convert seconds into Hours and Minutes.
How does this program work?
- In this program you will learn about how to convert seconds into Hours and Minutes using Python.
- In this program first user has to enter how many seconds that to be convert into hours and minutes.
- This program perform mathematical calculations and display the result.
Here is the code
seconds = int (input('Enter the seconds: '))
hr = seconds / 3600
mint = seconds / 60
sec = seconds % seconds
print(" Hours: ",hr,"Minutes: ",mint,"Seconds: ",sec)