0

[SOLVED] Can you help me to see my mistake ?

Hello, I begin python since 2 days and I'm stuck at the bmi calculor. I don't ask the solution but a clues to show my mistakes please ? bmi = float(input())/(int(input())**2) if bmi < 18.5: print("Underweight") elif bmi >= 18.5 and bmi < 25: print("Normal") elif bmi >= 25 and < 30: print("Overweight") elif bmi > 30: print ("Obesity") Thanks for answers !

9th Apr 2022, 11:15 PM
Fuuji
Fuuji - avatar
6 Answers
+ 4
1. bmi float(input())/int(input)**2 ☝️ 2. elif bmi >= 25 and < 30: #bug ☝️ 3. elif bmi > 30: # Obesity = 30 or more
9th Apr 2022, 11:45 PM
Solo
Solo - avatar
+ 1
Fuuji remember to mark the best answer. Also rename the question title to insert [SOLVED] at the beginning.
10th Apr 2022, 12:17 AM
Brian
Brian - avatar
0
Tracking your BMI is a useful way of checking if you’re maintaining a healthy weight. It’s calculated using a person's weight and height, using this formula: weight / height² The resulting number indicates one of the following categories: Underweight = less than 18.5 Normal = more or equal to 18.5 and less than 25 Overweight = more or equal to 25 and less than 30 Obesity = 30 or more Let’s make finding out your BMI quicker and easier, by creating a program that takes a person's weight and height as input and outputs the corresponding BMI category. Sample Input 85 1.9 Sample Output Normal
9th Apr 2022, 11:44 PM
Fuuji
Fuuji - avatar
0
Oh, i think I have, I go test
9th Apr 2022, 11:47 PM
Fuuji
Fuuji - avatar
0
It's good I got it, thanks for help !
9th Apr 2022, 11:50 PM
Fuuji
Fuuji - avatar
0
It's good
10th Apr 2022, 12:29 AM
Fuuji
Fuuji - avatar