1!=0 ##This is an examle of a "does not equal" statement##
if x != 0:
if a != b: if not a == b:
1 != 2 # The 'not equal to' symbol is !=
(a != b) #testing for not equel
>>> 'ABC' != 'ABC' False >>> 1 != 1 False >>> {1: None, 2: None} != 10 True >>> 1 != 1.0 False