It means not equal to. It was taken from ABC
(python’s predecessor) see here:
x < y, x <= y, x >= y, x > y, x = y, x <> y, 0 <= d < 10
Order tests (
<>
means ‘not equals’)
I believe ABC
took it from Pascal, a language Guido began programming with.
It has now been removed in Python 3. Use !=
instead. If you are CRAZY you can scrap !=
and allow only <>
in Py3K using this easter egg:
>>> from __future__ import barry_as_FLUFL >>> 1 != 2 File "<stdin>", line 1 1 != 2 ^ SyntaxError: with Barry as BDFL, use '<>' instead of '!=' >>> 1 <> 2 True
Related Posts:
- What is the result of % in Python?
- What does “while True” mean in Python?
- What is the difference between {} and [] in python?
- What does ‘&’ do in a C++ declaration?
- syntaxerror: “unexpected character after line continuation character in python” math
- How do you express binary literals in Python?
- Can someone explain __all__ in Python?
- How to exit a loop in Python?
- How can I do a line break (line continuation) in Python?
- What does the /= operator mean in Python?
- What do >> and << mean in Python?
- Is there a difference between `continue` and `pass` in a for loop in python?
- What is the difference between ‘/’ and ‘//’ when used for division?
- What does the “at” (@) symbol do in Python?
- What is :: (double colon) in Python when subscripting sequences?
- Is there a difference between x++ and ++x in java?
- What’s the u prefix in a Python string?
- Python def function: How do you specify the end of the function?
- No Multiline Lambda in Python: Why not?
- Prolog “or” operator, query
- Does Python have a ternary conditional operator?
- What is the difference between rw+ and r+
- Behaviour of increment and decrement operators in Python
- Is there a “not equal” operator in Python?
- Python integer incrementing with ++ [duplicate]
- What exactly does += do in python?
- Does Python have a ternary conditional operator?
- What’s the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
- What is the difference between range and xrange functions in Python 2.X?
- Is there a “not equal” operator in Python?
- Python division
- raw_input function in Python
- IndentationError: unexpected indent error
- What do these operators mean (** , ^ , %, //)? [closed]
- What do these operators mean (** , ^ , %, //)? [closed]
- What does operator “dot” (.) mean?
- Putting a simple if-then-else statement on one line [duplicate]
- Safest way to convert float to integer in python?
- ^=, -= and += symbols in Python
- How can I do a line break (line continuation)?
- How do you comment out code in PowerShell?
- How do I break a string in YAML over multiple lines?
- syntaxerror: “unexpected character after line continuation character in python” math
- syntaxerror: “unexpected character after line continuation character in python” math
- `from … import` vs `import .` [duplicate]
- Tab space in Markdown
- write() versus writelines() and concatenated strings
- In JavaScript is != same as !==
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- syntax error when using command line in python
- No module named MySQLdb
- No module named MySQLdb
- Comments in Markdown
- proper name for python * operator?
- proper name for python * operator?
- What does the power operator (**) in python translate into?
- How do you use subprocess.check_output() in Python?
- what is the meaning of == sign?
- How do I pass multiple parameters into a function in PowerShell?
- Comments in Markdown
- The difference between += and =+
- What is the difference between syntax and semantics in programming languages?
- Python: SyntaxError: keyword can’t be an expression
- What do << or >>> in java mean?
- How can I concatenate str and int objects?
- What is the Java ?: operator called and what does it do?
- What does the percentage sign mean in Python
- The tilde operator in Python
- How do you use subprocess.check_output() in Python?
- How do I convert a float number to a whole number in JavaScript?
- hat does “static” mean in C?
- How to normalize a 2-dimensional numpy array in python less verbose?
- Ternary operator (?:) in Bash
- SyntaxError invalid token
- Python – ‘ascii’ codec can’t decode byte
- How to return dictionary keys as a list in Python?
- UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xa0′ in position 20: ordinal not in range(128)
- Printing variables in Python 3.4
- What does the “@” symbol do in PowerShell?
- Using multiple variables in a for loop in Python
- Static Semantics meaning?
- What does the `and` keyword mean in OCaml?
- text highlight in markdown
- Error “‘type’ object has no attribute ‘__getitem__'” when iterating over list[“a”,”b”,”c”]
- Inline for loop
- TypeError: super() takes at least 1 argument (0 given) error is specific to any python version?
- What does ‘wb’ mean in this code, using Python?
- What does @@variable mean in Ruby?
- Python def marked as invalid syntax
- How do you format an unsigned long long int using printf?
- Using the AND and NOT Operator in Python [duplicate]
- What exactly do “u” and “r” string flags do, and what are raw string literals?
- Determine if 2 lists have the same elements, regardless of order? [duplicate]
- Python a &= b meaning?
- OCaml mod function returns different result compared with %
- Using print() (the function version) in Python2.x
- What are those pipe symbols for in Ruby?
- bash: syntax error near unexpected token `(‘ – Python
- How to read a CSV file from a URL with Python?
- How to import a csv-file into a data array?