3.1.4.1. Exercise: Python basics 1#
A sprinter runs through two timing gates spaced by 50 m as shown in Fig. 3.1. Each timing gate records the time (in seconds) at which the sprinter passes through it.
Given the following program:
time_gate1 = 1.3 # in seconds
time_gate2 = 6.7 # in seconds
distance_gates12 = 50.0 # in meters
Continue this program so that it prints the mean velocity of the sprinter between gates 1 and 2.
Show code cell content
time_gate1 = 1.3 # in seconds
time_gate2 = 6.7 # in seconds
distance_gates12 = 50.0 # in meters
print(distance_gates12 / (time_gate2 - time_gate1))
9.25925925925926