title: Need help iterating through a nested list but
body: <p>'''</p>
  <pre><code>patients = [[175.8, 73.4], [180.2, 59.5], [165.4, 70.2], [193.5, 120]]
  
  def calculate_bmi(height, weight):
      return weight / ((height / 100 )**2)
  
  def get_bmi_category(bmi):
      if bmi &lt; 18.5:
          return &quot;underweight&quot;
      elif bmi &lt; 25.0:
          return &quot;normal weight&quot;
      elif bmi &lt; 30:
          return &quot;overweighting&quot;
      else:
          return &quot;obesity&quot;
  
  for patient in patients:
      height, weight = patients[0]
      bmi = calculate_bmi(height, weight)
      bmi_category = get_bmi_category(bmi)
      print(&quot;Patient's BMI is: {} ({})&quot;.format(bmi, bmi_category))
  </code></pre>
  <p>'''</p>
  <p>When I print, I only get the results of the first nested list four times, when I want the results of all the nested loops. What else can i do?</p>