0
Help with flight code
Iâve tried everything// . (( )) = + *please give me example how to write it out
9 Answers
+ 1
Attach the language and your try
+ 1
What's the problem??
Where the code problem description??
+ 1
Sheena Pannell
I believe the distance to be travelled is 7425 km.
The plane flies at 550 km/hr
The challenge is to find out how long it takes to fly this distance.
Basic math states:
distance / speed = time.
Your problem is not coding related, you have not applied basic logic to the task
distance = 7425
speed = 550
time = distance / speed
print(time)
This is a pythonic solution, but the concept can be converted to any language.
Before you can write code, you must understand the concept.
0
Python print((7425 + 550) * 13.5
0
It keeps saying its wrong either im typing it wrong or the answer is
0
Is it of the Python For Beginners
Flight code 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.
Hint
The result should be a float.
//
Is this the problem??
0
Yes
0
ok here's a hint:
Speed = distance/time
0
Ok thanks