List question

Paul Rubin http
Fri Mar 21 17:57:58 EDT 2008


From at home writes:
> 	if 'one' and 'two' in f:
> 		alist.append(f)

Use:
     if 'one' in f and 'two'  in f: ...



More information about the Python-list mailing list