How to use <>?

Tim Hammerquist tim at vegeta.ath.cx
Wed Mar 7 02:16:29 EST 2001


Victor Louie <vlouie at telusplanet.net> wrote:
> I was just wondering if any knew what <> does....I've got some sample code
> and can't figure out what's happening
> 
> eg.
> x =10
> if x <> 10:
>  ....

It's an alternate operator which is identical in meaning to !=
(inequality).  The following are equivalent:

	if x != 10: # do stuff
	if x <> 10: # do stuff

HTH

-- 
-Tim Hammerquist <timmy at cpan.org>

Computers are useless. They can only give you answers.
	-- Pablo Picasso



More information about the Python-list mailing list