Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 27, 2020 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/60be538eb3e7834acdd7fda1d3d250be to your computer and use it in GitHub Desktop.
Save codecademydev/60be538eb3e7834acdd7fda1d3d250be to your computer and use it in GitHub Desktop.
Codecademy export
# 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.")
# Age Factor
# BMI Factor
# Male vs. Female Factor
# Extra Practice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment