I wouldn't advise leaving a light on all night ("24/7") as snakes do respond to the photoperiod to instinctively judge the day length (& thereby the season), but you
can use a CHE (ceramic heat emitter, which emits no light) or use a black or red incandescent* bulb with a dimmer (rheostat) control to add dim light & warmth at
night. Most of our snakes don't like bright day light, so consider these options for day use also. But keep in mind these black & red incandescent light bulbs are
getting harder to find. The black bulbs (when dimmed) simulate moon light. Many of my snakes enjoy any of these options, even those that aren't nocturnal.