title: Could you please explain this while loop in a simple way?
body: <p>You need to write a loop that takes the numbers in a given list named num_list:
  num_list = [422, 136, 524, 85, 96, 719, 85, 92, 10, 17, 312, 542, 87, 23, 86, 191, 116, 35, 173, 45, 149, 59, 84, 69, 113, 166]</p>
  <p>Your code should add up the odd numbers in the list, but only up to the first 5 odd numbers together. If there are more than 5 odd numbers, you should stop at the fifth. If there are fewer than 5 odd numbers, add all of the odd numbers.</p>
  <pre><code>num_list = [422, 136, 524, 85, 96, 719, 85, 92, 10, 17, 312, 542, 87, 23, 86, 191, 116, 35, 173, 45, 149, 59, 84, 69, 113, 166]
  
  count_odd = 0
  list_sum = 0
  i = 0
  len_num_list = len(num_list)
  
  while (count_odd &lt; 5) and (i &lt; len_num_list): 
      if num_list[i] % 2 != 0:
          list_sum += num_list[i]
          count_odd += 1
      i += 1
  
  print (&quot;The numbers of odd numbers added are: {}&quot;.format(count_odd))
  print (&quot;The sum of the odd numbers added is: {}&quot;.format(list_sum))
  </code></pre>