BMI calculator python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

BMI calculator python

Please help me with the solution

23rd Apr 2022, 4:37 PM
Ernest Mensah
2 Answers
+ 2
How can we? Where is your solution?
23rd Apr 2022, 4:51 PM
Jayakrishna 🇮🇳
0
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') else: print('Obesity')
12th Jun 2022, 3:36 AM
Nícolas Nascimento
Nícolas Nascimento - avatar