numbers [ - squares set up before the loop for number in numbers squares append(number** processing in the loop for py print(squaresresults after the loop our third example made new list from the elements of an old list for examplewe might want to take list of numbers and produce the list of their squares in this case the usual process is that rather than have an accumulator with an initial value we start with an empty list andas we loop through the input valueswe append(the corresponding output values python for py [