Question: what is the relationship between period and number of energy levels?
Answer: The number n of a period on the periodic table is the same as the number of the highest principal energy level for the atoms on that row—that is, the principal energy level occupied by its valence electrons. Thus, elements on period 1 have a highest principal energy level of 1, and so on.