John Salerno wrote:
>> How can I create two separate conditions in a for loop?
>... 
> I tried this:
> 
> punc_space = string.punctuation + string.whitespace
> for char in punc_space:

That's probably best.  If the sources are not so simple, you could use:

     import itertools

     for char in itertools.chain(onesource, anothersource, yetanother):
         ...

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to