"Mr.SpOOn" <mr.spoo...@gmail.com> wrote in message 
news:mailman.492.1258380560.2873.python-l...@python.org...

> In [13]: ('b3' and '5') in l or ('3' and 'b3') in l
> Out[13]: True

For anything more than the simplest cases, you might want use sets.

That might be the correct data type from the start, depending on
whether the ordering is important anywhere. 


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

Reply via email to