Snakes are cold-blooded as they belong to class reptilia.
They have no mechanism to regulate their internal temperature.
They utilize the environment in order to maintain a suitable temperature such as basking in the sun during winters, staying in shade, or underwater in hot summers to adjust their internal temperature.