online.service....@gmail.com wrote:
python doesn't have a list.contains()   method?


How about the 'in' operator?

In [1]: l1=['aa', 'bb', 'cc']

In [2]: 'aa' in l1
Out[2]: True

In [3]: 'ab' in l1
Out[3]: False

In [4]: 'cc' in l1
Out[4]: True

Will this help?

Esmail


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

Reply via email to