Thanks, I was using "in" incorrectly. Thanks a lot!
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED]:
>I was wondering if anyone knew of a built in Python function that will
>check if an item is a member of a list, i.e., if item i is a member of
>list l.
>>> 1 in [1,3,4]
True
>>> 2 in [1,3,4]
False
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I was wondering if anyone knew of a built in Python function that will
> check if an item is a member of a list, i.e., if item i is a member of
> list l.
>
> I read of a function "in" but I can't seem to get that to work and
> finding pages for "python in" does not reve
Hi,
I was wondering if anyone knew of a built in Python function that will
check if an item is a member of a list, i.e., if item i is a member of
list l.
I read of a function "in" but I can't seem to get that to work and
finding pages for "python in" does not reveal very many relevant
sources.
T