In p orbital shape is dumbbell shaped which means electron go in the shape of dumbbell means first towards nucleus then go away from it. How can be this possible because first electron is attracted towards nucleus now it is very close means attraction force will be more and how it can go away from nucleus?
Dont think of orbitals as an orbit of the electron around the nucleus. Thats a HUGE no no. The orbitals are solutions to the wave function for a specific value of energy that characterizes each shell. This purely means that an orbital captures the area where the probability density of finding an electron is high, not where the electron orbits. So the dummbell shape results from the probability density, not the orvit of the electron.