len1 = math.hypot(x1, y1)
len2 = math.hypot(x2, y2)
return math.acos(inner_product / (len1 * len2))

def calculate(pt, ls):
    i = 2
for x in ls:
    pt2 = x, i
i = i + 1
ang = angle(pt, pt2) * 180 / math.pi
ang = ang * -1
print(ang)
pt = 3, 1
ls = [1, 7, 0, 4, 9, 6, 150]
calculate(pt, ls)
calculating angle between two lines in python