- 2

Number of hours in 888 minutes??

Please help

8th Oct 2021, 2:44 AM
Vinayak Mishra
9 Answers
+ 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.
10th Oct 2021, 2:04 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Vinayak Mishra 1 hour = 60 minutes ? hours = 888 minutes Just divide by 60 to convert minutes in hours
8th Oct 2021, 3:05 AM
AĶ¢J
AĶ¢J - avatar
+ 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 (%)
10th Oct 2021, 2:35 PM
AĶ¢J
AĶ¢J - avatar
0
Maybe they (whoever gave you this task) want to know how many *full* hours there are in 888 minutes.
8th Oct 2021, 2:49 AM
Simon Sauter
Simon Sauter - avatar
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.
8th Oct 2021, 7:48 PM
Simon Sauter
Simon Sauter - avatar
0
14.8 hours, just divide it by 60
9th Oct 2021, 9:56 AM
Sankalp Singh
- 1
I tried 888//60 but boom failure We need to write a proper formula and algorithm
10th Oct 2021, 1:00 PM
Vinayak Mishra
- 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
10th Oct 2021, 1:02 PM
Vinayak Mishra
- 2
print (888//60) - this is Pyton code.
9th Oct 2021, 12:43 PM
Š›ŠµŠ¾Š½ŠøŠ“ Š”ŠµŃ€ŠµŠ³ŠøŠ½
Š›ŠµŠ¾Š½ŠøŠ“ Š”ŠµŃ€ŠµŠ³ŠøŠ½ - avatar