Jan-28-2020, 02:17 PM
First, need to instantiate the class. In line 102, add
You call calc_bmi() in 100 but do nothing with the return value. Either store bmi within the object or save it.
You then call bmi_analysis in 101 without an argument, but in the function definition it is supposed to be sent "bmi". You could instead combine 100 and 101 with
bmi = BMI()then in 103 make it bmi.main(), 105 should have bmi.name instead of just name
You call calc_bmi() in 100 but do nothing with the return value. Either store bmi within the object or save it.
You then call bmi_analysis in 101 without an argument, but in the function definition it is supposed to be sent "bmi". You could instead combine 100 and 101 with
self.bmi_analysis(self.calc_bmi())Fix those and it should work, though I have no idea how many stones I am.