Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
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.
5 Antworten
+ 4
Programmer269 "//" is floor division operator not division operator.
+ 1
7425/550
+ 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.
+ 1
Ohh right, now I understand
0
Thanks mate