The energy necessary to turn the comet's dust-filled ices into vapor does come from the Sun, whose ultraviolet radiation, visible light, and infrared radiation (heat) do some of the work.
(The energy necessary to turn the comet's dust-filled ices into vapor; does come; from the Sun)
The energy necessary to turn the comet's dust-filled ices into vapor
does come
from the Sun