Answer:
As light passes through a prism, it is bent, or refracted, by the angles and plane faces of the prism and each wavelength of light is refracted by a slightly different amount.
the light gets dispersed and there is a formation of a seven colours spectrum