On Mon, Dec 1, 2008 at 2:31 PM, Aaron Scott <[EMAIL PROTECTED]> wrote:
> Pseudocode:
>
> if "two" in ["one", "two", "three", "four"]:
>     return True

That works, just like you wrote it:

>>> "two" in ["one", "two", "three", "four"]
True

>>> "two" in ["one", "twofer", "three", "four"]
False

If that doesn't answer your question, maybe you could give some examples.

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

Reply via email to