It is showimg me not defined every time how can i fix this?

You only wrote first line but never run it. Its kind of long time from last time I used Jupyter Notebook but I think it is shift+enter to run the line of code. Also, to define key, value pairs in dictionary you need to use colon instead of equal sign. As an example, instead of ‘sex’ = ‘female’ it should be ‘sex’ : ‘female’.