Why do we have two two not equals sign in python.
Is there any difference?
Or is there any difference in memory allocation?
Asked
Active
Viewed 61 times
0

Kumaran
- 3,460
- 5
- 32
- 34
-
`<>` is deprecated in Py3, Use `from __future__ import barry_as_FLUFL` to get it back. – Bhargav Rao Jun 10 '16 at 10:57
-
They are different spellings for the same operator. Usually we use `!=`. `<>` is obsolescent (as stated in the python docs). – VlassisFo Jun 10 '16 at 10:58
-
They're the same, but `<>` is the old operator. Use `!=` – khelwood Jun 10 '16 at 10:58
-
1The forms `<>` and `!=` are equivalent; but `!=` is preferred. Check [this](https://docs.python.org/2.4/ref/comparisons.html) – Ajeet Shah Jun 10 '16 at 11:02