Tangential, but important: snakes, like all non-human animal species, don't have genders so far as we know. They have sexes.
https://www.taconic.com/taconic-insi...-research.html
Using 'gender' as a euphemism for 'sex' is a very dated locution, and problematic in a bunch of ways, but most relevantly because the two terms don't have the same meaning. At all.