Using non-ascii symbols

Dave Hansen iddw at hotmail.com
Tue Jan 24 14:06:49 EST 2006


On Tue, 24 Jan 2006 19:44:28 +0100 in comp.lang.python, Christoph
Zwerschke <cito at online.de> wrote:

>Dave Hansen wrote:
>> C uses ! as a unary logical "not" operator, so != for "not equal" just
>> seems to follow, um, logically.
>
>Consequently, C should have used !> for <= and !< for >= ...

Well, actually, no.

"Less (than) or equal" is <=.  "Greater (than) or equal" is >=.  "Not
equal" is !=. 

If you want to write code for the IOCCC, you could use !(a>b) instead
of a<=b...

Regards,
                                        -=Dave

-- 
Change is inevitable, progress is not.



More information about the Python-list mailing list