<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#3333ff">
<font size="+1">Yet another approach to experiment with. Thank you all
very much,<br>
<br>
Robert<br>
</font><br>
Kent Johnson wrote:
<blockquote
cite="mid:1c2a2c590810071054r775a2648u54543b12c264b01b@mail.gmail.com"
type="cite">
<pre wrap="">On Tue, Oct 7, 2008 at 1:15 PM, Richard Lovely
<a class="moz-txt-link-rfc2396E" href="mailto:roadierich@googlemail.com"><roadierich@googlemail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">In a slightly related matter, Is is possible to use all() with a list
comprehension to check if a word contains all of the letters of
another?
</pre>
</blockquote>
<pre wrap=""><!---->
Sure.
In [1]: all(letter in 'abcde' for letter in 'cde')
Out[1]: True
In [2]: all(letter in 'abcde' for letter in 'cdef')
Out[2]: False
Kent
</pre>
</blockquote>
</body>
</html>