0

Whats wrong with this code that in project of bmi doesn't accept my code!!! i tried it in other ide there is no problem it works

height = 1.9 weight = 85 bmi = float(weight)/float(height**2) i = bmi if i < 18.5: print("under weight") elif i >= 18.5 and i < 25: print("normal") elif i >= 25 and i < 30: print("overweight") elif i ==30 or i > 30: print("obesity")

6th Apr 2021, 6:20 AM
Sajjad Samiei naserani
Sajjad Samiei naserani - avatar
3 odpowiedzi
+ 3
Jorji Sali ,Instead of writing height = 1.9 weight = 85 Write weight = input() height = input() And write Obesity, Normal ,etc With first letter in uppercase Hope It Helps You 😊
6th Apr 2021, 7:30 AM
Hacker Badshah
Hacker Badshah - avatar
0
Jorji Sali, the height and weight must be specified as both ints and inputs!!!!
6th Apr 2021, 6:50 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
0
No results yets there is some problem. Please write it exactly how to declare them
6th Apr 2021, 7:14 AM
Sajjad Samiei naserani
Sajjad Samiei naserani - avatar