Hello guys, here we will put into practice everything that we know by creating a simple BMI calculator using python.
This will be a good exercise for us to express all that we have been learn about Python.
But first I will explain what is BMI.
What is a BMI calculator?
The Body Mass Index (BMI) is a simple calculation using a person's height and weight.
Tracking your BMI is a useful way to see if you are maintaining a healthy weight. It is calculated using a person's weight and height, using this formula: weight / height²
Underweight = less than 18.4
Normal = greater than or equal to 18.5 and less than 24
Overweight = greater than or equal to 25 and less than 29
Obesity = 30 or more
The program will take a person's weight and height as input and generate the corresponding BMI category.
So now let's create this calculator applying everything that we learn so far about Python.
Open your text editor, here I will use the VS code, so we will have:
Post a Comment
0Comments