Any one know answer and how to write in code word of python | Sololearn: Learn to code for FREE!

-12

Any one know answer and how to write in code word of python

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.

2/1/2021 3:45:30 AM

Jayendra Marathe

19 Answers

New Answer

+2

dist=7425; speed=550; time=dist/speed; print(time);

+1

time = 7425.0 / 550.0 print(time)

0

It's right >>> print(7425/550) P.S. just "/"

0

Print (7425/550)

0

What they ask doesn't match with the solution. Just dividing distance by speed should not be the answer because 13.5 is actually 13h and 30 minutes and missing 30 minutes from the answer. 7245 / 550 = 13.5 and a reminder of 275 which is 0.5 (meaning 30 minutes) and adding them up would be 14 hours total flight time. They should fix this. Cheers

0

Print(7425/550)

0

#your code goes here answer = float(7425.0 / 550.0) print(f"{answer}")

-1

t = (7425.0/550.0) print (t)

-1

print(7425/550)

-1

x = 7425.0 y = 550.0 z = x / y final = y ** z print(final) I wrote a code like this and it kept showing error, what is the error here??

-1

So i have question. I wanted to do something like this print((7425//550) +(7425.0%550)) but I don't know how to get the 0.5 you konw? I mean this was my first attempt

-2

#your code goes here print(7425.0/550.0)

-2

#your code goes here time = (7425.0/550.0) print (time)

-3

a = (7425.0/550.0) print (a)

-3

distance = 7425 speed = 550 x = distance/speed print(x)

-4

Read the python tutorial on how to do input and output via input() and print() statements and how to store input in variables.

-5

Also learn how to do calculations : time = distance / speed.

-5

t = (7425.0/550.0) print (t)

-5

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.