IF STATEMENTS
Chris Tavares
christophertavares at earthlink.net
Wed Oct 17 16:44:07 EDT 2001
"Charles" <charles at a3a.com.br> wrote in message
news:mailman.1003338557.21566.python-list at python.org...
> Hi !
>
> Anyone know how i can create
> a IF AND statements in python ?
>
> ex:
>
> IF vars == 1 AND vars2 == 2:
> .....
>
> in the tutorial papers only have
> a refers to ELIF.
>
"and" is an operator, like "+", not a part of the if statement. That's why
it's not doc'ed as part of if. Also, python is case sensitive.
So, you want:
if vars == 1 and vars2 = 2:
... stuff ...
-Chris
More information about the Python-list
mailing list