online.service....@gmail.com wrote:

> python doesn't have a list.contains()   method?

It has. It's called list.__contains__() and used indirectly through the 'in'
operator:

>>> "red" in ["red", "green", "blue"]
True
>>> "yellow" in ["red", "green", "blue"]
False

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

Reply via email to