Light was originally thought to behave as waves, but evidence showed it also behaves as particles. Max Planck's work established that light transfers energy in discrete packets called quanta. Albert Einstein later proposed that light consists of small particles called photons that exhibit wave-like properties. The photoelectric effect provided further evidence that light behaves as both waves and particles. Electrons also exhibit dual wave-particle properties, with wavelengths determined by the de Broglie equation. Heisenberg's uncertainty principle states the exact position and momentum of an electron cannot be known simultaneously. Quantum theory describes electrons as existing in distinct energy levels around an atom's nucleus.