I need help with bmi | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need help with bmi

def bmi_clculator(name,height_m,weight_kg): name="Sunday" Height_m=10 Weight_kg=90 bmi=("weight_kg/height_m**2") print("bmi:") print(bmi) if bmi<25: return name + "not overweight" else: return name+"overweight"

10th Jun 2020, 8:43 AM
Ajisegiri Sunday
Ajisegiri Sunday - avatar
2 Answers
+ 3
If you want check bmi of 3 or more person than create a for loop and inside the for loop take the user input for name ,weight and height then write BMI calculations formula now you can check 3 or more person bmi
10th Jun 2020, 12:51 PM
Runtime Terror
Runtime Terror - avatar
0
Thanks but what if I am to do for 3 or more people how do I go about it
10th Jun 2020, 9:42 AM
Ajisegiri Sunday
Ajisegiri Sunday - avatar