Home /
Expert Answers /
Computer Science /
do-not-use-numpy-nor-pandas-this-is-an-exercise-on-base-python-1-input-three-python-lists-of-ide-pa235
(Solved): Do not use numpy nor pandas. This is an exercise on base Python. 1. Input three Python lists of ide ...
Do not use numpy nor pandas. This is an exercise on base Python. 1. Input three Python lists of identical lengths (at least five items each) giving basic data on your friends/family, for example: It is assumed that names[ i ] gives the name of the i-th person whose height in centimetres is heights [ i] and weight in kilograms is weights [ i]. You should enter different data, not exactly the values above. 2. Using a for loop, create (programmatically) a Python list bmis such that bmis [ i ] gives the body mass index of the i-th person. 3. Based on the BMI categories as defined by the WHO (underweight if below 18.5, normal range up to 25.0, overweight above 25, obese above 30 ), use a for loop to print a series of strings like " \{name\} has BMI of {bmi} which is {bmi_category}." : \#\# Barbara has BMI of 20.38 which is normal. \#\# Anne has BMI of 30.48 which is obese. \#\# Greg has BMI of 25.62 which is overweight. \#\# Maggie has BMI of 23.23 which is normal. \#\# Nynke has BMI of 18.19 which is underweight. Make sure the formatting is neat and tidy. 4. Draw a bar plot like below, where the bar colours depend on the BMI categories.