Snakes are cowards... Just make some noise while walking and they'll go away before you even notice they were in your way.
You really need to surprise a snake (or most animals, for that matter) in a tight corner and make it feel threatened for it to try attacking you- not before trying to alert you by hissing etc- it's always their final resort, as snakes are quite aware of the chances their fangs could be broken by biting a large animal, or the risk of being trodden upon by something heavy. Like most animals, snakes ain't stupid and are more concerned in their own survival rather than biting you just for the fun of it.
So snakes- just like sharks or any other animal- when they face a human they are usually the ones that get scared and run away. As a matter of fact, if you are concerned about meeting dangerous animals on your way to your solo dive, then you should really be aware of- and try to avoid as much as possible- meeting other humans, as they by far more dangerous than all other animals...
The mentioned above may not necessarily apply if you happen by chance to meet a very hungry >5m Python snake, rabid dogs or vicious man eating crocodiles