if statements
Alex Martelli
aleax at aleax.it
Sat Jan 19 09:43:16 EST 2002
calder wrote:
> "maximilianscherr" <MaximilianScherr at T-Online.de> wrote:
>>how can i include more stuff into if statements, like
>>if var1 != 0 or var2 != 0 or var3 != 1:
>>...
>>
>>is this the right way? caus emy script doen't seem to cae what i
>>wrote there, it just keeps on running
>
> Cause it should be more like:
>
> if (var1 != 0) or (var2 != 0) or (var3 != 1):
>
Nah. No need for those redundant parentheses, though I guess they're all
right if they make you feel more comfortanble -- semantics are the same.
Alex
More information about the Python-list
mailing list