- 2
Number of hours in 888 minutes??
Please help
10 Antworten
+ 1
Vinayak Mishra I just looked at the task. The task is to print the hours *and the minutes*. Not just that it gives a detailed explanation of how to do that.
So, yes, Martin Taylor was wrong about you. He assumed you can read and understand a simple task description. So boom your issues lie deeper than we all assumed. Congratulations.
+ 1
Vinayak Mishra
1 hour = 60 minutes
? hours = 888 minutes
Just divide by 60 to convert minutes in hours
+ 1
Vinayak Mishra
In python there are two types of division (1) floor division (//) which will give you integer value means without fraction part.
(2) normal division (/) which will give you float value
So here we need hours and minutes so to get exact hours you can do floor division
And to get remaining minutes you can apply modulus operator (%)
0
Maybe they (whoever gave you this task) want to know how many *full* hours there are in 888 minutes.
0
Martin Taylor in his defense, I don't think it's a matter of maths knowledge here (he has the "formula" in the tags). I assume that the task is to calculate only *full* hours and that that is not made explicit.
0
14.8 hours, just divide it by 60
- 1
I tried 888//60 but boom failure
We need to write a proper formula and algorithm
- 1
Martin Taylor I would say the same of I were in ur boots but that formula of 888//60 I tried later it showed wrong so the actual answer involved writing the formula and then print the thing desired so boom ur stereotype for me was ❌wrong
- 2
print (888//60) - this is Pyton code.