I come from c-style languages, so I naturally used != As unequal, but when I came to Python, from the documentation I read, I learned that the <> operator was used for this purpose.
I have seen a lot of code lately using != , So my question is whether one of them is preferable to the other or one of them is deprecated.
In addition, I would like to know if there is a difference between the two.
python deprecated not-operator
coredump
source share