0

Python for beginners

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. I entered the code Print=(7425/550) and this was incorrect. What am I missing?

17th Feb 2021, 10:44 PM
Dan
Dan - avatar
6 Answers
- 1
Dan by using "?" I was just saying if that's the answer you are were looking for. And Print is just a variable and you were trying to assign it a value . To actual print the value you should use print function as i answered above.
17th Feb 2021, 10:59 PM
Abhay
Abhay - avatar
0
print(7425/550) ?
17th Feb 2021, 10:46 PM
Abhay
Abhay - avatar
0
thanks that was the correct answer. also i am new why do i not put a =?
17th Feb 2021, 10:48 PM
Dan
Dan - avatar
0
thank you for the help
17th Feb 2021, 11:01 PM
Dan
Dan - 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. Hint The result should be a float.
18th Feb 2021, 5:58 AM
GOPI.S
GOPI.S - avatar
0
Gave answer
18th Feb 2021, 5:58 AM
GOPI.S
GOPI.S - avatar