It’s best to keep away from snakes, but you’d nevertheless do well to know the signs that indicate whether you’ve been confronted with a venomous member of the species or not:
The abdominal side of the tail is covered with non-bifurcated scales.
Its pupils are similar to those of a cat (non-dangerous snakes have round pupils).
The divide between the head and the neck is very distinct if viewed from above.
Of course, there are exceptions to every rule, and only an expert can really confirm whether a snake is dangerous or not. But in the majority of cases, these rules are a good guide.
Source;