Python Forum
Is there any <> operator in python 3.6
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there any <> operator in python 3.6
#1
Is there any <> operator in python 3.6. if yes then give me example.
Reply
#2
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/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python greater than equal to comparison operator Ilangos 4 2,424 Sep-26-2020, 03:53 AM
Last Post: buran
  Python logical operator AND rasec70 4 2,526 May-07-2020, 03:40 PM
Last Post: pyzyx3qwerty
  Use of & operator, groupby in python abhi1693r 0 1,590 Mar-11-2020, 02:25 PM
Last Post: abhi1693r
  Comparison Operator "is" idle vs python command spisatus 3 2,782 Oct-29-2019, 10:00 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020