My US medical insurance project - and questions

Here is a link to my insurance project:

This is my first time sharing a file with github, so I hope I have done it right!

I found this project really interesting. I have assessed whether men or women pay more on average for insurance. Then I have started to look into why there might be a difference. I have not looked into all factors as I thought the code would be similar, but may revisit in the future to do so.

I wondered if using classes would have been a better option or are functions still suitable?
Are there any ways I could have condensed the code down to do the same thing?

I’d really appreciate any feedback you have.

Thank you!