- 1
Is this is <> an operator?
In python programming language
18 Answers
+ 7
Please use search bar before writing a questions. We want to avoid duplicate questions.
See these similar questions
https://www.sololearn.com/Discuss/1089/?ref=app
https://www.sololearn.com/Discuss/32692/?ref=app
https://www.sololearn.com/Discuss/324125/?ref=app
+ 3
<> is equivalent to != but it is now removed from Python 3. You can still use it by importing it tho.
Both != And <> evaluates the values on both side of them and return true if they are not equal.
1 <> 2 gives true
1 != 2 also gives true
!= is something like not equal to and so is <>.
+ 2
Ruby has this operator <=> but not <>.
+ 2
It's the inequality operator in Pascal and BASIC.
+ 1
Sagar Goel Sorry, but I cannot access my PC right now so I can't check it. But you can see the stackoverflow answers below
https://stackoverflow.com/questions/4007289/so-what-exactly-does-from-future-import-barry-as-flufl-do
0
Ok
0
Ok
0
Damn, never seen <> before because I don’t live in the PAST
0
It is in python 2
- 1
please give example of both the operators
- 1
Which module should be imported to use it?
- 1
Sagar Goel It is something like
from __future__ import barry_as_FLUFL
- 1
It is not working
- 1
Sagar Goel I think it doesn't work in this app... Let me check it somewhere else
- 2
It's called diamond operator, if you want diamonds in your code prefer using <> instead of !=.
- 2
Sagar Goel Yes!