IF STATEMENTS

Raibatak Das rd54 at cornell.edu
Wed Oct 17 16:40:52 EDT 2001


try 

if (vars1==1 and vars2==2) : 
	...

DO NOT capitalize the key words, python is case dependent.

In article <mailman.1003338557.21566.python-list at python.org>, "Charles"
<charles at a3a.com.br> wrote:

> 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.
> 
> Thx
> Charles



More information about the Python-list mailing list