On 10 Mar 2006 21:12:57 -0800
[EMAIL PROTECTED] wrote:
> How can I put multiple condition in if statement?
> I try this, but I can't get that to work.
> 
> if ( (str != " ") && (str != "") ):

if s!=' ' and s!='':

1) logical operators are words
2) don't overload standard type names

this is actually better style:

if s not in (' ', ''):



-- 
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to