Python Syntax: Medical Insurance Project

Please note, I am a BEGINNER with python. This is literally my first course in Python ever. I feel really dumb right now, because I can not see my error here. I have gone back over the previous lesson. I am clearly missing something. What is my error? What have I missed?

The lesson asks for:

"After the declaration of the variables, create a variable called insurance_cost that utilizes the following formula:

insurance_cost=250∗age−128∗sex
+370∗bmi+425∗num_of_children
+24000∗smoker−12500

Here is MY code,

create the initial variables below

age = “28”
sex = “1”
bmi = “26.2”
num_of_children = “3”
smoker = “0”

Add insurance estimate formula below

insurance_cost = “250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500”

print(“This person’s insurance cost is " +
str(insurance_cost) + " dollars.”)

This is the output I receive,

This person’s insurance cost is 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500 dollars.

This is the output I am Supposed to receive,

This person’s insurance cost is 5469.0 dollars.

Screenshots here,
Screenshot 2020-10-27 at 1.28.38 PM Screenshot 2020-10-27 at 1.28.24 PM Screenshot 2020-10-27 at 1.28.11 PM Screenshot 2020-10-27 at 1.27.56 PM Screenshot 2020-10-27 at 1.27.46 PM



Link here,

NEVERMIND… I see it now lol

Removed all the “”

Oh man

Apologies for the inconvenience

4 Likes