My GF has a rat snake, which is kinda like a corn snake.
They can escape, mine almost did recently.
We think it used the latch to lift up the piece of glass and push it out, where is promply smashed, so I'd advise a couple of spare pieces... And a relativly secure room
One word of warning.
The biggest group of people killed by snakes, are young men, who when drunk get their snake out. They fall asleep with snake, and it strangles them.
Or so the internet told me.
Mines about 5 years old and close to 6 foot long, although quite thin. It has had a speculative go at killing me once of twice, if I was asleep and didnt wake up, they would fairly successful.
They live till they're about 25 in captivity, and frankly, they're a bit borning...
No live food. An adult mouse will take your snakes eyes out.