here is my simple python code. I could not figure out why its shows index out of range .any help .
distances = []
i=0
for i in range(len(points)):
point = points[i]
next_point = points[i+1]
x0 = point[0]
y0 = point[1]
x1 = next_point[0]
y1 = next_point[1]
point_distance = get_distance(x0, y0, x1, y1)
distances.append(point_distance)
points? What line gives the index out of range error?