# How Flight Works 2, Exercise 1: the four flights of 17 December 1903 # Commonly cited figures for the day: (seconds in the air, distance in feet). # Work out the ground speed of each flight in m/s and km/h, the total # time in the air, and the total distance. FEET = 0.3048 flights = [(12, 120), (13, 175), (15, 200), (59, 852)] total_s = 0 total_ft = 0 for n, (secs, feet) in enumerate(flights, start=1): metres = feet * FEET speed = metres / secs print("flight", n, round(metres), "m", round(speed, 1), "m/s", round(speed * 3.6), "km/h") total_s += secs total_ft += feet print("total", total_s, "s", round(total_ft * FEET), "m") # Output when run: # flight 1 37 m 3.0 m/s 11 km/h # flight 2 53 m 4.1 m/s 15 km/h # flight 3 61 m 4.1 m/s 15 km/h # flight 4 260 m 4.4 m/s 16 km/h # total 99 s 411 m # # These are speeds over the GROUND. The aeroplane was flying into a strong # headwind, so its speed through the AIR was much higher than these numbers.