I am having trouble with where to locate a list append so the values keep getting accumulated in the list as it goes through the loop. The code does the following: