Investigate how different factors affect the prediction of medical insurance costs by practicing many python concepts.