python that's still factually incorrect. The phenotype is still driven by biologically based mechanisms (largely the underlying genotype but modified by environmental factors like nutrition, exposure to different chemicals, epigenetic factors).
Gender is a social construct. It is how an individual society, contingently and as a response to social, historical and cultural factors, codifies the behaviour, dress patterns, occupations etc it deems appropriate to one sex or the other. And it's highly variable: Medieval Iceland - weaving is women's work; Medieval England - weaving is men's work.
Phenotype - still biological. Gender - social construct.