How to solve the flight time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 23

How to solve the flight time

13th Nov 2021, 6:09 AM
Sh.M
Sh.M - avatar
21 Answers
+ 18
yeah i know the solution is x=7425 y=550 h=(x/y) print (float(h))
13th Nov 2021, 6:31 AM
Mohamed Aazir Abdul Hathi
Mohamed Aazir Abdul Hathi - avatar
+ 6
print (7425/550) the hint was made the question tricky for me but you don't have to put .0 because either way it would be a float.
11th Oct 2022, 12:13 AM
JEIMY INTERIANOCOLOCHO
JEIMY INTERIANOCOLOCHO - avatar
+ 3
x=7425 y=550 h=(x/y) print(float(h))
5th Jul 2022, 2:08 PM
Habib Mohammadzadeh
+ 1
Storing the flight number flight_n = "BA0117" Storing the flight information destination = "New York" distance = 1580 print(flight_n) print(destination) print(distance)
5th Oct 2023, 6:22 PM
Thabo Egon
Thabo Egon - avatar
0
Did not act
13th Nov 2021, 6:41 AM
Sh.M
Sh.M - avatar
0
Thanks tanks very tanks
13th Nov 2021, 7:40 AM
Sh.M
Sh.M - avatar
0
I had transcribed X and Y, the truth😅
13th Nov 2021, 7:42 AM
Sh.M
Sh.M - avatar
0
print(7425.0/550.0)
1st Mar 2022, 3:47 PM
Leonie Vanessa Fürich
0
(7425.0/550.0)
28th Jun 2022, 6:55 PM
Saif akhtar
Saif akhtar - avatar
0
def time(distance, speed):   time = distance / speed     print(time) time(7425, 550) speed = distance / time time = distance / speed
23rd Jul 2022, 11:28 AM
best tube
0
Print(float (7425/550))
17th Aug 2022, 2:48 PM
Vikas Pal
Vikas Pal - avatar
0
thank you
30th Aug 2022, 3:32 PM
sam
0
distanceMiles = 7425 averageSpeed = 550 totalFlightTime = distanceMiles / averageSpeed print(totalFlightTime)
25th Oct 2022, 10:15 PM
Stjepan
Stjepan - avatar
0
@best tube you have some extra lines in code: time = distance / speed - remove last one speed = distance / time - remove it completely - why did you put speed here?? we have the given average speed of 550 miles an hour
25th Oct 2022, 10:28 PM
Stjepan
Stjepan - avatar
0
You need to calculate the flight time of an upcoming trip. 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. answer x=7425 y=550 h=(x/y) print(float(h)) for more doubt solving telegram on this channel https://youtu.be/SF7i81_89q8
17th Nov 2022, 5:13 AM
RAJVEER SINGH BAIRWA
RAJVEER SINGH BAIRWA - avatar
0
print(float(7425/550))
26th Nov 2022, 7:16 PM
Yashashwini Reddy M S
0
Can someone help me? I have used all these codes but the results are showing no Input and output
14th Mar 2023, 12:36 PM
Karnik Kumar Gayan
Karnik Kumar Gayan - avatar
- 1
Sh.M It will be helpful if you insert your code
13th Nov 2021, 6:24 AM
Mohamed Aazir Abdul Hathi
Mohamed Aazir Abdul Hathi - avatar
- 1
print(float(7425/550))
2nd Oct 2022, 5:55 AM
Sumit Prajapati
Sumit Prajapati - avatar
- 2
You need to calculate the flight time of an upcoming trip. 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.
13th Nov 2021, 6:27 AM
Sh.M
Sh.M - avatar