livepython.net

39. Python Program to Convert Minutes to Hours and Minutes

MediumNumbers

Overview

Use // and % to split minutes into hours and minutes.

Problem Statement

Store 135 in a variable called minutes. Work out the hours and the minutes left over, and print:

135 minutes is 2 hours and 15 minutes

Input

No input is required for this question.

Output

135 minutes is 2 hours and 15 minutes

Learn this firstChapter 5 · Python Numbers: int, float and Math Operators
solution.py
# write your code here

EXPECTED OUTPUT

1135 minutes is 2 hours and 15 minutes

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.