**New course!**Every coder should learn

**Generative AI!**

0

# Can you help me on Quotient and Remainder?

Random task! You need to calculate the number of hours in 888 minutes. Your program needs to output the number of hours and then the number of remaining minutes, on separate lines. For example, 72 minutes are equal to 1 hour and 12 minutes, so your program would output: 1 12 You can use floor division to find the number of hours, and the modulo operator to find the remaining minutes. Use separate print() statements for each output. Here is my attempt: print(888//60) (888//60) print(888%48) (888%48)

3 Answers

+ 5

print(888//60)
print(888%60)

+ 3

Shah Johan
Where is 48 in the description?

+ 1

minutes = 888
print(f'{minutes} minutes = {minutes//60}hours and {minutes%60}minutes ')