Re: Re: iterating lists

2010-01-23 Thread ceciliaseidel
Arnaud Delobelle schrieb: ceciliasei...@gmx.de writes: As you were talking about list.pop()... Is anyone able to reproduce the following and explain why this happens by chance? (Using 3.1.1) l1 = ["ready", "steady", "go"] l2 = ["one", "two", "tree"] l3 = ["lift off"] for w in l1: Ouch...

iterating lists

2010-01-23 Thread ceciliaseidel
As you were talking about list.pop()... Is anyone able to reproduce the following and explain why this happens by chance? (Using 3.1.1) l1 = ["ready", "steady", "go"] l2 = ["one", "two", "tree"] l3 = ["lift off"] for w in l1: print(l1.pop()) #prints only "go steady" - why not "ready"?? f