Ozone (O$_3$) has a bent molecular structure and exhibits resonance. The $\pi$ electron density is not confined to one specific oxygen-oxygen bond but is spread over all three oxygen atoms through resonance structures. This delocalization of $\pi$ electrons enhances the stability of the molecule.