How to subdivide the elements of the list (list of distance ) into groups according to the distance (euclidean-distance where the indices is supposed as angle) between the elements using python like in the example below. where the new lists must start with the starting index in the original list

PS: in the Euclidean distance, we need an angle to calculate it. So I supposed that the angle is the indices of list for example list[0]=10 and list1=12 to calculate the Euclidean distance we need first to get X and Y of each value
x1 = (list[i] * math.cos(math.radians(float(i))))
y1 = (list[i] * math.sin(math.radians(float(i))))
x2 = (list[i+1] * math.cos(math.radians(float(i+1))))
y2= (list[i+1] * math.sin(math.radians(float(i+1))))
distance= sqrt((x1 - x2) * (X - x2) + (posYd - y2) * (posYd - y2))