On 11/10/2007, brad <[EMAIL PROTECTED]> wrote:
> Crazy question, but has anyone attempted this or seen Python code that
> does? For example, if a text file contained 'Guido' and or 'Robert' and
> or 'Susan', then we should return True, otherwise return False.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Text = open(fname).read()
def a_function():
for Name in ['Guido', Robert',Susan']:
if Name in Text:
return 1
if a_function():
print "A name was found"
:)
--
http://mail.python.org/mailman/listinfo/python-list