SyntaxFix
Write A Post
Hire A Developer
Questions
Use != or <>. Both stands for not equal.
!=
<>
The comparison operators <> and != are alternate spellings of the same operator. != is the preferred spelling; <> is obsolescent. [Reference: Python language reference]