The forms "<>" and "!=" are equivalent. In Python 2.7.3 the "<>" spelling is considered obsolescent.

The following code snippet illustrates this rule :

return a <> b  # Non-Compliant
return a != b  # Compliant