Is this is <> an operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Is this is <> an operator?

In python programming language

21st Feb 2020, 12:38 PM
Sagar Goel
Sagar Goel - avatar
17 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
21st Feb 2020, 1:04 PM
Pedro H.J
Pedro H.J - avatar
+ 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 <>.
21st Feb 2020, 2:28 PM
Utkarsh Sharma
Utkarsh Sharma - avatar
+ 2
Ruby has this operator <=> but not <>.
22nd Feb 2020, 6:00 AM
Sonic
Sonic - avatar
+ 2
It's the inequality operator in Pascal and BASIC.
22nd Feb 2020, 6:05 AM
Sonic
Sonic - avatar
+ 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
22nd Feb 2020, 3:37 AM
Utkarsh Sharma
Utkarsh Sharma - avatar
0
Ok
22nd Feb 2020, 3:19 AM
Sagar Goel
Sagar Goel - avatar
0
Ok
22nd Feb 2020, 3:43 AM
Sagar Goel
Sagar Goel - avatar
0
Damn, never seen <> before because I don’t live in the PAST
22nd Feb 2020, 9:07 PM
Michael David
Michael David - avatar
0
It is in python 2
23rd Feb 2020, 4:37 AM
Sagar Goel
Sagar Goel - avatar
- 1
please give example of both the operators
21st Feb 2020, 1:17 PM
Sagar Goel
Sagar Goel - avatar
- 1
Which module should be imported to use it?
22nd Feb 2020, 3:16 AM
Sagar Goel
Sagar Goel - avatar
- 1
Sagar Goel It is something like from __future__ import barry_as_FLUFL
22nd Feb 2020, 3:18 AM
Utkarsh Sharma
Utkarsh Sharma - avatar
22nd Feb 2020, 3:23 AM
Sagar Goel
Sagar Goel - avatar
- 1
It is not working
22nd Feb 2020, 3:23 AM
Sagar Goel
Sagar Goel - avatar
- 1
Sagar Goel I think it doesn't work in this app... Let me check it somewhere else
22nd Feb 2020, 3:24 AM
Utkarsh Sharma
Utkarsh Sharma - avatar
- 2
It's called diamond operator, if you want diamonds in your code prefer using <> instead of !=.
21st Feb 2020, 10:50 PM
Seb TheS
Seb TheS - avatar
- 2
23rd Feb 2020, 4:40 AM
Utkarsh Sharma
Utkarsh Sharma - avatar