def PointM(X,Y): n=len(X) xG=0;yG=0 for i in range(n): xG=xG+... yG=... xG=xG/n ; yG=yG/n return xG,yG