Snakes are reptiles, of course and as such the are cold blooded, an unfortunate term since the blood of an active snake may be as warm or warmer than our own. Make shaw that there is a rock for the snake can bask on and keep warm at one end and at the other there should be a cold place to lower the temperature because they are thermo regulators which means that the snake will want to change its body heat when it wants to.
Use this information when buying the light and heating of your vivarium for your snake or lizard.