State the reason for the following:

State the reason for the following:
(a) The elements of the same group have similar chemical properties.
(b) The elements of the same period have
different properties.

(a) Because of same number of valence electrons.
(b) Because of different number of valence electrons.