+ 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.

22nd Sep 2022, 11:44 AM
Hacman
Hacman - avatar
10 ответов
+ 7
What help you need? Do you have tried any? post it. Hint : Time = distance/speed
22nd Sep 2022, 11:47 AM
Jayakrishna 🇮🇳
+ 3
*** Result should be float. // is floor division operator. Use / decimal division operator print(7425/550)
22nd Sep 2022, 11:53 AM
Jayakrishna 🇮🇳
+ 3
I solved the problem. Thanks once again. I really do appreciate your contributions
22nd Sep 2022, 11:57 AM
Hacman
Hacman - avatar
+ 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
22nd Sep 2022, 11:50 AM
Hacman
Hacman - avatar
+ 2
Okay thanks. I will try it out now
22nd Sep 2022, 11:54 AM
Hacman
Hacman - avatar
+ 2
Thanks Arun. I have tried it out and it worked out perfectly thanks to jayakrishna and the solo learn community ✊🏾
23rd Sep 2022, 3:08 PM
Hacman
Hacman - avatar
+ 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....
23rd Sep 2022, 10:47 AM
Venkatesh
Venkatesh - avatar
+ 1
You could go to the projects section. Or better still join a team of people with like minds.
24th Sep 2022, 12:52 PM
Hacman
Hacman - avatar
0
Has anyone got a list of python projects to work on? Kindly share.
24th Sep 2022, 9:30 AM
Joseph Anim Darko
Joseph Anim Darko - avatar