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.

2nd Aug 2022, 7:06 AM
Sunday Peter
Sunday Peter - avatar
3 Respuestas
+ 1
This is just a basic math problem. Your code needs to output the result of the distance travelled divided by the average speed.
2nd Aug 2022, 7:25 AM
Brandon
Brandon - avatar
+ 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)
2nd Aug 2022, 9:25 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thank ya'll ur answer is helpful and means alot to me Really appreciate
2nd Aug 2022, 11:55 AM
Sunday Peter
Sunday Peter - avatar