[Python] Design & build airplanes from your specifications.
1
import random
2
3
defget_drag(aircraft,drag):
4
# Transform semi-span integer into list
5
semi_span = [x for x in range(0,..)]
6
7
# Drag increases after 80% of the semi_span
8
cutoff = round(0.8*..)
9
10
# Drag increases by 25% after 80% of the semi_span
11
F_x = [drag for x in [0:]]
12
F_x.([1.25*forin[:]])
13
return F_x
14
15
16
defget_drag_total(aircraft):
17
"""Get total drag force acting on the aircraft."""
18
return random.() * 100
19