Equality operator

Anthony Boyd bagofholding at gmail.com
Sat Mar 5 17:09:26 EST 2005


italy wrote:
> Why doesn't this statement execute in Python:
>
> 1 == not 0
>
> I get a syntax error, but I don't know why.
>
> Thanks,
> Adam Roan

Of course, you would normally want to use != to see if something is not
equal to something else.

1 != 0
True




More information about the Python-list mailing list