I have two large males that I'd never put in a ten gallon alone let alone together haha but they are big boys. But tens are kinda small for two rats I've used them for birthing moms and litters tbo
Normals 1.3
Spider .1
Carpet Python .1
Dog APBT .1
Short-term/temporary housing (i.e. travel, birthing/nursing, overnight, quarantine, that kind of thing) it wouldn't be ideal, but it would probably be ok.
Long-term, not ok.
Why keep a snake? Why keep any animal? Because you enjoy the animal, find something beautiful and fascinating about it, and it fits seamlessly into your lifestyle.