"kyosohma" typed:

> If you want to get really fancy, you could do a list comprehension
> too:
> 
> your_list = ["0024","haha","0024"]
> new_list = [i for i in your_list if i != '0024']

Or, just:

In [1]: l = ["0024","haha","0024"]
In [2]: filter(lambda x: x != "0024", l)
Out[2]: ['haha']

-- 
Ayaz Ahmed Khan

Do what comes naturally now.  Seethe and fume and throw a tantrum.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to