[Tutor] range/for list change behavior

2008-09-29 Thread Don Parris
Hi all, After a rather long (and unfortunate) break from tinkering with Python, I am back at it. I am working through the book Learning Python (based on 2.2/2.3 - I use 2.5), and in the chapter on while/for loops, ran across the following example: L = [1, 2, 3, 4, 5] for i in range(len(L)):

Re: [Tutor] range/for list change behavior

2008-09-29 Thread Steve Willoughby
Don Parris wrote: Hi all, After a rather long (and unfortunate) break from tinkering with Python, I am back at it. I am working through the book Learning Python (based on 2.2/2.3 - I use 2.5), and in the chapter on while/for loops, ran across the following example: L = [1, 2, 3, 4, 5]