👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

What is the not equal operator in Python?

In Python, the syntax for the not equal operator is !=. Here is a simple example:

>>> a=4
>>> b=6
>>> if (a!=b):
>>>     print ('a not equal b')
a not equal b

More