Medical Insurance Formula error.. Anyone noticing?

The output result for estimate_insurance_cost in the terminal differ from the one given at hints. I have done 3 of these Medical Insurance projects, with 2 of them having similar error. Is it a formula or back-end error?

Can you post a link to the exercise, please?

hi,

This is the link for the exercise.

https://www.codecademy.com/paths/data-science/tracks/dsf-python-fundamentals-for-data-science-part-i/modules/dsf-python-control-flow/projects/ds-python-controlflow-project

The value for sex that you’re passing into keanu_insurance_cost() should be 1, not 0, as he’s a male. That should give the right output:

Hi,

It looks like you are right! Should have noticed that myself. Thanks for your reply.

Regards,

Robby

1 Like

No problem; happy coding!