if variable is not equal to string python code example Example: not equal python if a != b: pass if not a == b: pass