Discuss / Python / homework

homework

Topic source

胖胖

#1 Created at ... [Delete] [Delete and Lock User]

height = 1.75

weight = 80.5

bmi = (weight/(height**2))

if 18.5 <= bmi <= 25:

   print("normal")

elif bmi < 18.5:

  print("too Thin")

elif 25 < bmi <= 28:

  print("over weight")

elif 28 < bmi <= 32:

  print("heavy")

else:

  print("too heavy")


  • 1

Reply