+ 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!
4 Respostas
+ 4
% gives you remainded..
// gives you the int quotient part
Hope it helps.. https://code.sololearn.com/c0U5FfnES1Ea/?ref=app
+ 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
+ 1
Indira I check it
Thank you 🌸
0
you are smart. you are brave. Thank you , I try it 🌸