def milieu(A, B): xA, yA = A xB, yB = B return (xA + xB) / 2, (yA + yB) / 2
xI, yI = milieu((2,4), (6, 10))
xI
4.0
yI
7.0