+ 3
Python floats
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.
7 Respostas
- 1
// is floor division, use / to get the decimal.
+ 1
Print((7425.0/550.0))
0
- 1
Okay
- 2
Show the code then only we can correct you properly
- 3
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.
- 7
print(7425/550)