In Python 2.x <> as well as != symbols are defined as 'not equal to' operators. In Python 3, <> operator is deprecated.