Python Syntax: Medical Insurance Project

Hey Everyone!
I just finished the Medical Insurance Project in Python. Any feedback would be appreciated! Thanks

1 Like

Once you learned about functions should revisit this project and use function to eliminate some of the repetitiveness :slight_smile:

Looks good! I recently decided to completely restart the Data Science course after they implemented their course updates (was about 30% through prior to updates). @stetim94 is definitely right about functions, or maybe even class? Will revisit both ideas once I get further into the new content.

I attached my project–I created new variables for the changed info, rather than changing the variables back and forth. A bit more work, but it keeps things straight in my head.

Feedback is appreciated!

Also, could you please help me understand how you shared your gist on your post instead of just copy/paste the code into your thread? Would really appreciate it! I haven’t shared a gist on this forum before.

1 Like

you could make a gist on gist.github.com, then copy and paste the link of the gist on the forum, which will recognize the gist and display it in a nice way.

2 Likes

Great, thanks! I’ll try editing my reply now and see if it works.

1 Like

There’s a handy link in the learning environment (share icon) near the save/run button that will even do it for you :+1:.

1 Like

I was like: I vaguely remember that there was a better way, but forgot what it was. Good one :slight_smile:

2 Likes

Excellent, thank you!

1 Like

I learned functions and you are absolutely right! It really takes out the mass repeating.