Python Forum

Full Version: Is there any <> operator in python 3.6
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any <> operator in python 3.6. if yes then give me example.
The <> operator just means "not equal" which we already have covered with !=.
There is however a joke import that lets you use it but it shouldn't actually be used in real code.
>>> from __future__ import barry_as_FLUFL
>>> 2 <> 5
True
>>> 2 <> 2
False
>>>
https://www.python.org/dev/peps/pep-0401/