value is in list?

David Hláčik david at hlacik.eu
Thu Jun 12 18:22:29 EDT 2008


Hello ,
following scenario

list_current = [ "welcome", "search", "done", "result"]
list_ldap = [ "welcome", "hello"]

result:

list_toadd = [ "hello"]

by words said , i want to check if list item from list_ldap exists in
list_current if not i want to add it to list_toadd.

Thanks!

D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080613/b3499dfd/attachment.html>


More information about the Python-list mailing list