求身体质量指数答案显示错误 求指出错误

img

把第10行 27<=BMI 去掉
height,weight=eval(input()) 这样输入的数值必须要用逗号分隔,如 2,5
如果输入的数值要用空格分隔,如 2 5,应该改成
height,weight=map(float,input().split(" "))

height,weight=map(float,input().split(" "))
BMI=weight/(height*height)

if BMI<18:
    print("超轻")
elif 18<=BMI<25:
    print("标准")
elif 25<=BMI<27:
    print("超重")
else:
    print("肥胖")


如有帮助,望采纳!谢谢!

身高是米为单位,体重是公斤为单位