# Medical Insurance Project Python

Just completed the Medical Insurance Project :- )

# create the initial variables below age = 28 sex = 0 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 # Insurance cost print(f"This person's insurance cost is {insurance_cost} dollars.") ############# Separating The Parts #################### print("\n") ############# Separating The Parts #################### # New age Factor age += 4 new_insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500 print(f"This person's new insurance cost is {new_insurance_cost} dollars.") # Difference in insurance change_in_insurance_cost = new_insurance_cost - insurance_cost print(f"people who are four years older have estimated insurance costs that are {change_in_insurance_cost} dollars different,") ############# Separating The Parts #################### print("\n") ############# Separating The Parts #################### # BMI Factor age -= 4 bmi += 3.1 new_insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500 print(f"This person's new insurance cost is {new_insurance_cost} dollars.") # Difference in insurance change_in_insurance_cost = new_insurance_cost - insurance_cost print(f"The change in estimated insurance cost after increasing BMI by 3.1 is {change_in_insurance_cost} dollars different,") ############# Separating The Parts #################### print("\n") ############# Separating The Parts #################### # Male vs. Female Factor sex = 1 bmi -= 3.1 new_insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500 print(f"This person's new insurance cost is {str(new_insurance_cost)} dollars.") # Difference in insurance change_in_insurance_cost = new_insurance_cost - insurance_cost print(f"The change in estimated cost for being male instead of female is {change_in_insurance_cost} dollars different,") ############# Separating The Parts #################### print("\n") ############# Separating The Parts #################### # Extra Practice num_of_children += 1 new_insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500 print(f"This person's new insurance cost is {new_insurance_cost} dollars.") smoker = 1 num_of_children -= 1 new_insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500 print(f"This person's new insurance cost is {new_insurance_cost} dollars.")