altura=float(input("Ingrese su altura en m: "))
peso=float(input("Ingrese su peso en kg: "))
IMC=peso/altura**2
if IMC>30:
    print("Obesidad", IMC)
else:
    if IMC>25:
        print("Sobrepeso", IMC)
    else:
        if IMC>18.5:
            print("Normal", IMC)
        else:
            print("Falta de peso", IMC)

Embed on website

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