I was once confused by the periodic table's amu figures for those small elements. The fact that hydrogen is [tex]\approx 1.008[/tex] made me think the electron was playing the role of that extra amu. As fedaykin said, it has to do with the isotopes (amount of neutrons present) that affects the amu of the element.
As your teacher/professor would've told you, the mass of the electron is so small compared to the proton/neutron, that it can be considered negligible. Somewhere in the range of 1/2500 mass. So one of the larger known elements, say 100 atomic number, those electrons would only add 0.04 amu to the element.