Well. Snakes are certainly not the brightest bulbs on the tree. However, we have observed hook training to be effective and they are able to learn to trust their keepers. So they can definitely make associations, which is more than can be said about many animals.
I could be mistaken, but I was under the impression that cribos and indigos are the most intelligent snakes.