from math import exp
def v(t_ :float):
return 5 + 2 * exp(-0.5 * t_)
a = 1 # intervallets undre gräns
b = 9 # intervallets övre gräns
n = 1000 # antal delintervall
dt = (b - a) /n
t = a + dt / 2
stracka = 0
for i in range(n):
stracka = stracka + v(t) * dt
t = t + dt
print(f'Skidåkaren hinner {round(stracka, 1)} m')