+ 1

I don't understand % :( in this problem.

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 . Output is 14 48 , I calculated 14 but I can't calculate another My codes are print(888//60) print( ? %(888//60)) Each number I insert will not be 48!

9th Oct 2021, 4:13 AM
Sahara
Sahara - avatar
4 Respostas
+ 4
% gives you remainded.. // gives you the int quotient part Hope it helps.. https://code.sololearn.com/c0U5FfnES1Ea/?ref=app
9th Oct 2021, 4:30 AM
Indira
Indira - avatar
+ 2
you are close. try something like this: total=72 # total minutes hr=total//60 # floor division min=total%60 # modulus print(f'{hr}\n{min}') # f-string
9th Oct 2021, 4:22 AM
you are smart. you are brave.
you are smart. you are brave. - avatar
+ 1
Indira I check it Thank you 🌸
9th Oct 2021, 4:31 AM
Sahara
Sahara - avatar
0
you are smart. you are brave. Thank you , I try it 🌸
9th Oct 2021, 4:26 AM
Sahara
Sahara - avatar