data science and python

Need help with this one from qustion 7-13, please help me with this homework 

Tags: No tags