What is the difference between an atom and a molecule?

An atom has a single nucleus with a group of electrons around it. A molecule has more than one nuclei, with electrons around it.

O2 is a molecule.

He is an atom.