If fish can be classically conditioned to be fed when the light turns on..
And dogs can learn to salivate with the sound of a bell..

I think snakes have the power to associate, learn, and understand consequence or reward.