Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Easy Python homework help? (10 points for best answer!)?
Body mass index (BMI) is a value derived from the mass and height of a person. The BMI is defined as the body mass divided by the square of the body height, and is commonly expressed in units of kg/m^2. The BMI is a convenient rule of thumb used to broadly categorize a person as underweight, normal weight, overweight, or obese based on tissue mass (muscle, fat, and bone) and height. This categorization is often debated an generally viewed as reasonable for population studies and inappropriate for individual evaluation.
In a mini study, data was collected on 8 subjects in Spain with the measurements in order for each subject of:
weights = [70, 75, 60, 30, 65, 80, 85, 100] kilograms (kg)
heights = [1.7, 1.8, 1.5, 1.42, 1.75, 1.8,1.85, 1.65] meters (m)
In other words, the first subject has a weight of 70 kg and a height of 1.7 m.
Print the BMI of these 8 subjects Make a list of the weights and a list of the heights, then loop through the lists to calculate and print the BMI of each subject in a sentence. For example, the
BMI of subject 1 is 24.2 kg/m^2.
BMI of subject 2 is 23.1 kg/m^2.
I have no idea how to do this. I learned how to do this using a 'for' loop, but I am completely lost after trying this many times. Thank you!
Be the first to answer this question.