Pythonの非等号

Pythonの非等号(not equal)は<>でも!=でも可。リファレンスマニュアルの推奨は!=。

>>> 1 <> 0
True
>>> 1 != 0
True