Does the velocity of light changes when it enters from one medium to another???
Light changes wavelength as it passes from one medium to another because it changes speed as it enters the new medium.
Light's energy is defined as its frequency multiplied by the Planck constant ( E=hf). When light travels from one medium to another, its energy doesn't change, so its frequency stays the same, this is observed as light not changing color as it passes through glass. However, its speed does change (kind of). From the formula v=fλ, the velocity changes so the wavelength changes.
As light travels from a less dense medium to a more dense medium (like from air to glass), its velocity decreases, so the wavelength increases. It is this change that causes light to bend. This is determined from the materials refractive index, using the formula v2v1=n1n2.