So I have been given a problem asking for the BMI of each person in the list using a loop. There are 6 sublists within the list we will call person_data. In the sublist contain [name,weight,hight]. I know that BMI=weight/height**2. I'm just having a problem running the loop to calculate each BMI for each person. I know I'm missing something simple. Am I supposed to index the BMI equation? I'm trying to use a for loop. I created a he blank BMI list.Any help is greatly appreciated.
New to python! Loops
New to python! Loops
|
|
Messages In This Thread |
New to python! Loops - by Seeley307 - May-12-2020, 12:46 AM
RE: New to python! Loops - by perfringo - May-12-2020, 05:00 AM
RE: New to python! Loops - by jefsummers - May-13-2020, 04:17 PM
RE: New to python! Loops - by ibreeden - May-15-2020, 02:27 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Error in loops, new to Python | jhall710 | 20 | 12,405 |
Apr-25-2017, 05:18 AM Last Post: smbx33 |
Users browsing this thread: 3 Guest(s)