You need to calculate the flight time of an upcoming trip. You are flying from LA to Sydney, covering a distance of 7425 miles, | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

You need to calculate the flight time of an upcoming trip. You are flying from LA to Sydney, covering a distance of 7425 miles,

D = 7425.0 V = 550.0 T = (D / V) print ( 'total flight time in hours : ', T) // whats wrong with the code??

8th Aug 2021, 9:44 PM
Ghassan Sawalha
Ghassan Sawalha - avatar
1 Answer
+ 2
The app checks the output. And the task is only to print the time, without any further text. So just replace your print statement with print(T)
8th Aug 2021, 9:57 PM
Simon Sauter
Simon Sauter - avatar