Electrons are attracted to the nucleus and are repelled by other electrons. As the distance between protons and electrons decreases, attractive force decreases. Not all electrons have the same nuclear attraction in an atom because the core electrons are closer to the nucleus than the valence, so they are held more strongly