python is equal operator code example Example: python not equal to 1 != 2 # The 'not equal to' symbol is !=