I think your teacher was confused but you'll probably want to ask him/her.
is an equation that always holds that links the index of refraction, the speed of light in a vacuum, and the phase velocity.
So that means that the speed of light depending on the frequency means the index of refraction depends on the frequency...and the index of refraction is what's unique to each medium. So this exception is no actual exception. You should ask your teacher about this because it undermines their understanding.
Light always travels at c
in a vacuum. That is what people refer to as constant. However, when the medium has an index of refraction that is greater than 1 then the phase velocity(more precise definition than speed...but there are other types of velocities such as the group velocity) in the medium decreases to satisfy the equation above. I can't explain to you how to calculate the index of refraction of a medium but don't worry you don't need to understand that. The speed of light is a constant in the universe and that means a bit more than you probably think it does unless you're familiar with special relativity. Special relativity says no matter how fast you're flying in your spaceship away from a beam of light coming from a flashlight the beam will always look like it's coming at you at the same speed. In all reference frames, both those that are accelerating or traveling at a constant velocity, light in a vacuum will propagate at a speed c.