+ 1
I was told to calculate the flight time of an upcoming trip. Kindly help out
You are flying from LA to Sydney, covering a distance of 7425 miles, the plane flies at an average speed of 550 miles an hour. Calculate and output the total flight time in hours. Hint The result should be a float.
10 Answers
+ 7
What help you need? Do you have tried any? post it.
Hint : Time = distance/speed
+ 3
*** Result should be float.
// is floor division operator.
Use / decimal division operator
print(7425/550)
+ 3
I solved the problem. Thanks once again. I really do appreciate your contributions
+ 2
I have already tried using the Time= distance/ speed, but it still not working. I tried print(7425//550) but it still didn't work
+ 2
Okay thanks. I will try it out now
+ 2
Thanks Arun. I have tried it out and it worked out perfectly thanks to jayakrishna and the solo learn community āš¾
+ 1
If you use time=distance// speed
It will give whole number ...
Instead if you use
Time=distance/speed
Result will be in float
Try it....
+ 1
You could go to the projects section. Or better still join a team of people with like minds.
0
Has anyone got a list of python projects to work on? Kindly share.