CPSC120B
Fundamentals of Computer Science I

Post-lab 3

Operators

Time Conversion

In this post lab, you will demonstrate your knowledge of the use of operators to perform a simple conversion between times.

Details

Create a Python program that converts a number of minutes to hours and minutes. Note the number of minutes should be less than 60. Your program must use variables and arithmetic operators to calculate the hours and minutes; simply printing the result is not sufficient.

Example

  $ python3 time.py
  91 minutes is 1 hour(s) and 31 minute(s).

Submission

Submit your code on the course Inquire site.