Problems regarding time calculations


Write a Python program whose interaction looks like this:

How many seconds?
7861
7861 seconds is 2 hours and 11 minutes and 1 seconds

The first and third lines above are output; the middle line is input. Remember that '%' in Python is used to get the remainder from an integer division.

[solution]


[index of CSC 104 test problem categories]
[main course page]