The program calculates the velocity between points in a list is written below. The program is written in python 3 thus ;
t = input("Enter time values : ")
#Enter the time values of the data
p = input("Enter distance values : ")
#Enter the distance values
dist = [float(x) for x in p.split()]
time = [float(x) for x in t.split()]
#pyt then values in a list
def partfthat(dist, time):
#initialize function that takes in two parameters
vel = []
#empty list to hold the calculated velocity values
i = 0
#indexer
while i <= len(dist)-2:
#while loop to iterate
v = (dist[i+1] - dist[i]) / (time[i+1] -time[i])
#Use the velocity formula
vel.append(v)
#append values to the empty list created
i+=1
return vel
print(avg_vel(dist, time))
A sample run of the program is attached.
Learn more : https://brainly.com/question/25681441