weight=float(input("enter your weight in kg: \n"))
height=float(input("enter your height in meters: \n"))
bmi=weight/height**2
if (bmi<18.5):
    print("your bmi is",bmi,"and you are underweight")
elif (bmi<25):
    print("your bmi is",bmi,"and you are healthy")
elif (bmi<30):
    print("your bmi is",bmi,"and you are overweight")
else:
    print("your bmi is",bmi,"and you are obese")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: