Perhaps this is a rather newbie-ish question, but I'm curious. I have tried searching for it, but I suppose I lack the correct terminology to search properly.
Difference between != and <>.
On searching again, "inequality", I found one that discusses not == and !=, but nothing about <>.
In Python 2.x,
<>is equivalent to!=, as described in the documentation:In Python 3.x,
<>has been removed. Again, the documentation says: