Where do snakes poop and pee out of?

There is a small opening at the end of the snakes tail. They poop and pee at the same time .