Use Subclass(Parentclass) to define a child classes of gender.

Head to the next Hyper link for free online Jupyter workspace:

Free Jupyter lab Online