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 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

21st Sep 2021, 10:00 AM
Fedlulhacker
3 Answers
+ 1
Calculate and print number of miles divided by miles per hour.
21st Sep 2021, 10:08 AM
Brian
Brian - avatar
0
Can u show me with code it's seems crwowded
21st Sep 2021, 10:35 AM
Fedlulhacker
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!
21st Sep 2021, 10:54 AM
mesarthim
mesarthim - avatar