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)

11th Nov 2021, 9:47 AM
Shah Johan
3 Respuestas
+ 5
print(888//60) print(888%60)
11th Nov 2021, 10:00 AM
SoloProg
SoloProg - avatar
+ 3
Shah Johan Where is 48 in the description?
11th Nov 2021, 10:40 AM
A͢J
A͢J - avatar
+ 1
minutes = 888 print(f'{minutes} minutes = {minutes//60}hours and {minutes%60}minutes ')
11th Nov 2021, 10:31 AM
Sarthak
Sarthak - avatar