On 7/20/07, Terry Carroll <[EMAIL PROTECTED]> wrote:
> Is there a straightforward way to find out if all characters in one string
> are present in a second string?

I like this one:
all(char in string.printable for char in testString)

>>> testString = "qwerty\buiop"
>>> all(char in string.printable for char in testString)
False

-- 
Jerry
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to