0

What would be the equation of this in 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.

20th Feb 2021, 2:32 PM
Programmer269
Programmer269 - avatar
5 ответов
+ 4
Programmer269 "//" is floor division operator not division operator.
20th Feb 2021, 2:47 PM
Abhay
Abhay - avatar
+ 1
7425/550
20th Feb 2021, 2:37 PM
Abhay
Abhay - avatar
+ 1
I meant an equation, like I tried this: "print(7425//550)" but it wouldn't work because as far as I know it should be a float number.
20th Feb 2021, 2:41 PM
Programmer269
Programmer269 - avatar
+ 1
Ohh right, now I understand
20th Feb 2021, 2:52 PM
Programmer269
Programmer269 - avatar
0
Thanks mate
20th Feb 2021, 2:52 PM
Programmer269
Programmer269 - avatar