In an atom electron travels outside the nucleus.
electrons travels around the nucleus in orbital but it is impossible to know both the speed and location of electron at the same time. Unlike the proton and neutrons which are located inside the nucleus electrons are located outside the nucleus.