0

What's problem with my BMI calculator code,please give me a explanation as complete

weight = float(input()) height = float(input()) BMI = (weight/(height**2)) if (BMI < 18.5): print("underweight") elif (BMI >= 18.5) and (BMI < 25) : print("normal") elif (BMI >= 25) and (BMI < 30): print("overweight") elif (BMI >= 30) : print("obesity")

10th Jul 2021, 3:52 AM
Christopher Bernard Wintara
2 Answers
+ 2
Christopher Bernard There is a simple issue. Capitalize all strings inside print function.
10th Jul 2021, 4:04 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
0
avoid posting duplicate thread: I already have given the issue your facing in your previous one: https://www.sololearn.com/Discuss/2832430/?ref=app Also, on another problem I give you the same answer about capitalization, you said it doesn't work and just know you said to another one saying the same thing that you understand your mistake now :o
10th Jul 2021, 4:08 AM
visph
visph - avatar