An adult snake will need at least a 20-gallon enclosure that measures ... voles, marsh rats, and mice. When they receive the proper care, pet corn snakes can live for a long time.