On Thu, 23 Dec 2004 06:56:02 +1030, Ishwor <[EMAIL PROTECTED]> wrote:
['a', 'b', 'c', 'd', 'e']lfor x in l[:]:if x == 'd': l.remove('d');
l['a', 'b', 'c', 'e'] This code is so clean and looks very healthy. Python will live a long way because its a cute language.
imho the code is very unhealthy, i would write l = ['a', 'b', 'c', 'd', 'e'] l.remove('d') print l
btw what are you using ';' for -- http://mail.python.org/mailman/listinfo/python-list