- 2

How to remove the bug while making a BMI calculator in python?

Anyone having any solution to it, plz help.

16th Jul 2021, 11:06 AM
Shahla Naz
Shahla Naz - avatar
8 Respostas
+ 1
and what is your error
16th Jul 2021, 11:11 AM
Bhavik Mahalle
Bhavik Mahalle - avatar
+ 1
Ohhh ok I'll try...thnku so much
16th Jul 2021, 11:14 AM
Shahla Naz
Shahla Naz - avatar
0
Yeah sure
16th Jul 2021, 11:10 AM
Shahla Naz
Shahla Naz - avatar
0
w = float(input ()) h = float(input()) bmi = w/(h**2) print ("your bmi is "+str(bmi)) if bmi < 18.5: print ("Underweight") elif 18.5 <= bmi < 25: print ("Normal") elif 25 <= bmi < 30: print ("Overweight") else: print ("Obesity")
16th Jul 2021, 11:11 AM
Shahla Naz
Shahla Naz - avatar
0
This was the code
16th Jul 2021, 11:11 AM
Shahla Naz
Shahla Naz - avatar