Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to python! Loops
#1
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.
Reply


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

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020