Why do some lizards and snakes have horns?

Horns aren’t only for rhinos and cattle. A good variety of snake and lizard species have…