title: iterating through list changing value of alternating items append not working but print is
body: <p>I'm attempting to iterate through a list of 3 items, subtracting an amount from alternating items on each iteration, and appending the result to a new list, until each number in the list is 0.</p>
  <p>What's really weird is that when printing the new list, the results are exactly what I want, but using the append method does not result in the desired behavior.</p>
  <p>I've tried moving the append statement all over the place and think I may need a nested for loop, but I'm not even sure what I could iterate through in that loop.</p>
  <p>Here's the code I got.</p>
  <pre><code>amt_list = [10,10,10]
  ctr = 0
  days = []
  in_ctr = 0
  
  
  while any(value &gt; 0 for value in amt_list):
      for d in amt_list:
          in_ctr += 1
          amt_list[in_ctr - 1] = d - 0.5
          print(amt_list)
          print(in_ctr)       
          if in_ctr == 3:
              in_ctr = 0
          days.append(amt_list)
      ctr += 1
      if (ctr - 1) == 2:
          ctr = 0
      print(days)
  
  
  print(amt_list)
  </code></pre>
  <p>Here's the output:</p>
  <pre><code>[9.5, 10, 10]
  1
  [9.5, 9.5, 10]
  2
  [9.5, 9.5, 9.5]
  3
  [[9.5, 9.5, 9.5], [9.5, 9.5, 9.5], [9.5, 9.5, 9.5]][9.0, 9.5, 9.5]
  1
  [9.0, 9.0, 9.5]
  2
  [9.0, 9.0, 9.0]
  3
  [[9.0, 9.0, 9.0], [9.0, 9.0, 9.0], [9.0, 9.0, 9.0], [9.0, 9.0, 9.0], [9.0, 9.0, 9.0], [9.0, 9.0, 9.0]][8.5, 9.0, 9.0]
  </code></pre>
  <p>What i am aiming to accomplish is a final list with..</p>
  <pre><code>amt_list = [[9.5, 10, 10], [9.5, 9.5, 10], [9.5, 9.5, 9.5]..., ..., [0, 0, 0.5]]
  </code></pre>