I come from a c style languages, so I am natural in using != as not equal, but when I came to Python, from the documentation I read, I learned that for this pur
!=
Python 2 supports both, in python 3 the <> operator has been removed.
<>
There is no difference between the two, but != is the preferred form.