471,347 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

what does the <> operator do

does anybody know what the <> does in python
i was looking at some code and i saw this operand used in different places, mainly in if else satements.

example

Expand|Select|Wrap|Line Numbers
  1. if(typevali <> 4 and busi == 0):
  2.  
Oct 29 '07 #1
1 1126
bvdet
2,851 Expert Mod 2GB
does anybody know what the <> does in python
i was looking at some code and i saw this operand used in different places, mainly in if else satements.

example

Expand|Select|Wrap|Line Numbers
  1. if(typevali <> 4 and busi == 0):
  2.  
The '<>' operator is the same as '!='. '!=' is preferred, and '<>' is obsolete.
Oct 29 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Donald Firesmith | last post: by
10 posts views Thread by dragoncoder | last post: by
3 posts views Thread by ajay2552 | last post: by
7 posts views Thread by Renzr | last post: by
14 posts views Thread by urikaluzhny | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.