Python "member of" function
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Python "member of" function

From: <brianlum@gmail.com>
Date: Sat Apr 29 2006 - 12:35:20 CEST

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.

Thanks!
Received on Mon May 1 00:43:07 2006