0
Pls how can i solve this pythone beginner, problem
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.
3 Answers
+ 1
This is just a basic math problem. Your code needs to output the result of the distance travelled divided by the average speed.
+ 1
Sunday Peter
There are 2 ways to do this code.
In order to output something in Python, you must use print(), with the desired output placed within the paranthesis -> ()
Example -> print("Hello World!")
Back to your problem.
You can create variables and assign the given values.
distance = 7425
speed = 550
Then create your output.
print(distance/speed)
Or you could just create an output from the info given in description.
print(7425/550)
+ 1
Thank ya'll ur answer is helpful and means alot to me
Really appreciate