'IF' Syntax For Alternative Conditions

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Feb 8 01:53:00 EST 2007


En Thu, 08 Feb 2007 01:01:38 -0300, <rshepard at nospam.appl-ecosys.com>  
escribió:

>   However, I cannot find, nor create by trial-and-error, the syntax for
> alternative conditions that are ORed; e.g.,
>
> 	if cond1 OR if cond2:
> 	    do_something.
>
>   Please pass me a pointer so I can learn how to correctly write this.

See the Python tutorial:  
http://docs.python.org/tut/node7.html#SECTION007700000000000000000
Note that most (if not all) Python keywords are lowercase.

-- 
Gabriel Genellina




More information about the Python-list mailing list