0

# Can anyone tell me how to solve the first project on python its says i have to solve the result of time travel from La to sydney

It's says ; solve the time travel in hours between La to Sydney if the airplane fly at average speed of 550 mile in 1 hour how long does it take to reach the destination ...by the way the distance between La to Sydney is 7425 so the challenge needs the output must be float????? Please FAQ

3 Answers

+ 1

Calculate and print number of miles divided by miles per hour.

0

Can u show me with code it's seems crwowded

0

Just focuse the given.
It says, the distance and it is 7425 and the average speed is 550 miles per hour. The relationship of speed, time and distance is,
distance = speed * time
or,
time = distance / speed
so, you should write time as a float, in Python if you don't specify the variable type, it takes default as float. You can solve the problem just writing:
distance = 7425
speed = 550
print(distance/speed)
or,
print(7425/550)
It helps. Happy coding!