On Sat, Feb 11, 2012 at 7:04 AM, Thomas Philips <tkp...@gmail.com> wrote:
> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>>> for i in x:
>        if i % 2 == 0:
>                x.remove(i)

Just a quickie, is there a reason you can't use a list comprehension?

x = [i for i in x if i % 2]

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to