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 !
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
+ 1
Fuuji remember to mark the best answer. Also rename the question title to insert [SOLVED] at the beginning.
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
0
Oh, i think I have, I go test
0
It's good I got it, thanks for help !
0
It's good