0

my project is to create BMI calculator. What went i try code in my PC it work but in app it don't work

weight = int(input()) height = float(input()) bmi = (weight/(height**2)) if bmi<18.5: print("underwight") elif (bmi>=18.5 and bmi<25): print("normal") elif (bmi>=25 and bmi<30): print("overweight") elif (bmi>=30): print("obesilty")

21st Feb 2021, 4:30 PM
John
3 Answers
+ 2
John in Python as far I know we don't use () in the if-elif-else statement.
21st Feb 2021, 4:58 PM
Matthew
Matthew - avatar
+ 1
Please add-show your attempt so the community can help you more easily :) Btw maybe a bug or other...
21st Feb 2021, 4:34 PM
Matthew
Matthew - avatar