The value of ‘g’, i.e., acceleration due to gravity does not remain the same on all places of the surface of the earth. It varies!
To be precise, it is more at poles and less at equator.
It can be easily made out that the value of ‘g’ varies on the basis of altitude.