To check if operands are not equal then use != operator.

If both operands has same value then != will return False. If both operands are different value then not equal operator will return value as True

Here is sample example of variable containing integer values and their comparison result with not equal to

#Use of operator not equal to
a= "3"
b= "4"
c = "4"
#If a is not equal to b then conditon will print true
print("a=",a,"b=",b,"\nResult of Not Equal to Operator is ",a!=b)
print("\n")
#if c equal to b then condition will print false as we are using not equal to operator
print(" b=",b,"c=",c,"\nResult of Not Equal to Operator is ",b!=c)
print("\n")

Output of above code is

a= 3 b= 4
Result of Not Equal to Operator is True
b= 4 c= 4
Result of Not Equal to Operator is False

Refer to link for not equal to python for more examples.