if BMI < 18.5: print("You have to gain a lot of weight to be obese!") elif 18.5 <= BMI <= 24: print("You are in the normal weight range, that is good!") elif 24 < BMI <= 25: print("You are in the normal weight range, but you have to be careful...") elif 25 < BMI < 30: print("You are overweight.") else: print("You are obese, get help!") print("\n") if sex == 'Female': ave_bmi_country = F.ave_bmi_kvk_country(country, cursor)[0][0] ave_bmi_country = float(format(ave_bmi_country, '.2f')) ave_bmi_world = F.ave_bmi_kvk_world(cursor)[0][0] ave_bmi_world = float(format(ave_bmi_world, '.2f')) elif sex == 'Male': ave_bmi_country = F.ave_bmi_kk_country(country, cursor)[0][0] ave_bmi_country = float(format(ave_bmi_country, '.2f')) ave_bmi_world = F.ave_bmi_kk_world(cursor)[0][0] ave_bmi_world = float(format(ave_bmi_world, '.2f')) print("The average BMI for {} in {} is {}".format(sex, country, ave_bmi_country)) print("The average BMI for {} in the world is {}".format(sex, ave_bmi_world)) if ave_bmi_world > BMI: prosenta = (BMI / ave_bmi_world)*100 prosenta = format(prosenta, '.2f')