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