What is the difference between the != and <> operators in Python?

PythonServer Side ProgrammingProgramming

In Python 2.x, both != and <> operators are available to check if two operands are not equal. Both return true if operands are not equal and false if they are equal.

In Python 3.x, <> operator has been deprecated.

raja
Published on 13-Feb-2018 14:27:47
Advertisements