Within a list, there are coordinates with x and y values.
[(7, 9), (3, 3), (6, 0), (7, 9)]
I can calculate the distance between two points.
distance_formula = math.sqrt(((x[j]-x[i])**2)+((y[j]-y[i])**2))
I am having a hard time going through the list and calculating the distance between each point. I want to calculate the distance between the first index and second index, second index and third index, third index and forth index...