A molecule is group of atoms (it can either be in an element or a compond )
Molecule of an element has identical atoms Eg N2. it has two atoms of nitrogen.
molecule of a compund has diffirent atoms. Eg HCl. It has an atom of hydrogen and an atom of chlorine