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. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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.

How can i calculate this miles in hours in python should have float

13th Oct 2021, 2:29 PM
🎩Pcrazy☠️
🎩Pcrazy☠️ - avatar
6 Answers
+ 3
Peter Kinyanjui Time=distance/Speed.. So,.. dist=7425 spd=550 time=dist/spd print(time)
13th Oct 2021, 2:35 PM
Indira
Indira - avatar
+ 2
Looks good to me, have you tried it yourself?
13th Oct 2021, 2:36 PM
Slick
Slick - avatar
+ 1
Slick Yup ..
13th Oct 2021, 2:37 PM
Indira
Indira - avatar
0
how about miles divided by miles per hour?
13th Oct 2021, 2:33 PM
Slick
Slick - avatar
0
Indira Great, so let OP do that as well.
13th Oct 2021, 2:39 PM
Slick
Slick - avatar
0
Thank you guys
13th Oct 2021, 4:35 PM
🎩Pcrazy☠️
🎩Pcrazy☠️ - avatar