What is the average BMI value for children and adults?.You get more prone to diseases such as high blood pressure, type 2 diabetes, high cholesterol, coronary artery disease, stroke, among many others. ![]() However, if you are overweight, obese or severely obese, your chances of developing various diseases increase with the increase in your BMI number. You can even get osteoporosis in later stages of life or be anaemic. Being underweight makes you more prone to diseases because it signifies that your body’s immunity is weak. If you do not fall in the category of normal weight, your health is at risk. The National Institute of Health (NIH) has now defined BMI to be the deciding parameter to know if you are underweight, normal weight, overweight or obese. Why is BMI calculation important for your health?.For example, if your weight is 60 kilograms and your height is 5 feet 3 inches, your BMI will be calculated as follows:60 / 2.61 (1.6 * 1.6) (5 feet 3 inches is approximately 1.6 meters)This gives us a BMI reading at 22.9. If you want to calculate again, simply press re-calculate.īMI is calculated by dividing a person’s weight in kilograms by the square of his/her height in meters. To calculate your BMI, follow these steps:Įnter your weight and select its unit (kilograms or pounds). But in such a situation, it is not unhealthy because it doesn’t have the associated health risks which a high BMI reading carries. Muscle is denser than fat and abundance of muscle means more weight and hence, higher BMI. However, if you are an athlete or an overall active person, your body weight may be high not because of fat but because of muscle. BMI is basically a quantified measure for the amount of tissue mass, that is muscles, fat and bones, of an individual. A normal BMI is an indicator of being at your ideal weight. A healthy BMI can also help you keep diseases like heart problem, type 2 diabetes and hypertension at bay. Hence, knowing your BMI is a very important factor in maintaining a healthy body and an optimum fitness level. It is a person’s weight in kilograms divided by the square of his/her height in meters. Print("invalid response please try again".Body Mass Index, or BMI, is a key index that relates to one’s height and weight. Return bmi_imperial()# This calls and computes the imperial standard function Print("-you have chosen to compute your BMI in-", response.upper())īmi_metrics() # This calls and computes the metrics standard function Response = input("would you like to calculate your Body Mass Index in Metrics or Imperial, type Metrics or Imperial: ").lower() #Ask if user would like to use Metric or Imperial units Welcome to Body Mass Index Calculator (BMI = M/H**2) # This is the main and it computes the BMI with either standard based on user response Response = input("Do you wish to continue? type Y for (yes) or N for (no): ") Print("you have obesity and needs quick medical attention".capitalize()) Print("you over weighed normal standard weight".capitalize()) Print("your body mass index = ".capitalize(), bmi, " kg/m2") Height = float(input("enter your height in metres(M) : " )) Weight = float(input("enter your mass in kilogram (KG) : " )) # this calculates Body Mass Index using Metrics standard Print('There is an error with you inputput') I've now changed it, but how do I go about editing this block: input = input('Do you wish to enter metric units or imperial units: ') Weight = int(input('Please enter your weight input pounds(whole number): ')) Height = int(input('Please enter your height input inputches(whole number): ')) Print('Please check you have entered whole numbers\n' Print('There is an error with your input') Print('Your BMI is', bmi,'which means you are obese.') Weight = int(input('Please enter your weight input kg: ')) ![]() Height = float(input('Please enter your height input meters(decimals): ')) Input('Do you wish to enter metric units or imperial units: ') Print('\n Hello, this is a BMI Calculator!') How do I fix this? print('\t\t\t BMI Calculator') The first three print functions work fine and anything after doesn't appear subsequent to me pressing the enter button. However, after I enter 'metric' or 'imperial' and press enter, the program closes. The program calculates a person's BMI from the weight and height supplied using the user's input.
0 Comments
Leave a Reply. |