From: Kevin M. <kev...@er...> - 2001-09-12 12:37:48
|
Hi, why does the following not work: a = [1, 2] for i in a: a.remove(i) The loop exits after the first iteration leaving a = [2] How do I get around this problem? Any help appreciated, Kevin _________________________________________________ Name/Title : Kevin McNamee, Software Consultant Phone : +46 13 32 1165 |