Re: Python "member of" function

2006-04-29 Thread brianlum
Thanks, I was using "in" incorrectly. Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "member of" function

2006-04-29 Thread Rene Pijlman
[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

Re: Python "member of" function

2006-04-29 Thread Erik Max Francis
[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

Python "member of" function

2006-04-29 Thread brianlum
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