Hi I am a complete noobie to Python and this forum. I’m nervous about even asking my questions her because I don’t want to seem dumb.
I’m confused because I am not getting the same answers as the Hints and I have tried to find an answer to my question but can’t find one specifically that answers my question.
Step 1: I created the initials variables below
age = 28
sex = 0
bmi = 26.2
num_of_children = 3
smoker = 0
Step 2: I created my formula like this as per instructed:
#Add insurance estimate formula below
insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500
Step 3: my print statement looks like this:
print(“This person’s insurance cost is” " “+ str(insurance_cost) + " dollars.”)
The output returned: This person’s insurance cost is 7000 dollars.
However, when I look at the answer from the hint section I get this:
The output of this print statement should be:
This person's insurance cost is 5469.0 dollars.
what am I doing wrong here?