what does the <> operator do

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fahadqureshi
    New Member
    • Oct 2007
    • 28

    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

    Code:
    if(typevali <> 4 and busi == 0):
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Originally posted by fahadqureshi
    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

    Code:
    if(typevali <> 4 and busi == 0):
    The '<>' operator is the same as '!='. '!=' is preferred, and '<>' is obsolete.

    Comment

    Working...