Dogs, cats, and many other types of common household pets can be trained to either obey commands, or perform tricks. However other types of pets are impossible to train, no matter how hard you try.
So what about snakes? Are snakes trainable?
No, snakes are not trainable and will not learn to obey their owner’s commands. They simply do not have the large, highly developed brains that would be required for training.
There are several kinds of snakes, such as pythons, which do have basic forms of pattern recognition. This means that, for instance, they can “learn” when feeding day is and will anticipate it, so long as you are consistent with your feedings. However if you are hoping to get a snake to perform tricks, you will be disappointed to learn that it is simply not possible.