I am new to Python and experimenting with lists I am using Python 3.2.3 (default, Oct 19 2012, 20:13:42), [GCC 4.6.3] on linux2
Here is my samplecode
Code
l = [1,2,3,4,5,6] for i in range(len(l)): l.pop(0) print(l)
returns
[2, 3, 4, 5, 6] [3, 4, 5, 6] [4, 5, 6] [5, 6] [6] []