Explanation:
However if the two atoms have different affinities for electrons, or electronegativities, then the electrons are more likely to be found closer to the more electronegative atom. In this case, the more electronegative atom gains a partial negative charge, while the less electronegative atom becomes partially positive.
hope it helps please mark me brainlist if you are satisfied with the answer