which of the following operators can be used to check whether two values are not equal in python? group of answer choices =/= ~= not == != in python

The operator used to check whether two values are not equal in Python is !=. For example:

main.py
a = 5
b = 10
if a != b:
    print("a is not equal to b")
57 chars
5 lines

related categories

gistlibby LogSnag