Python uses != as the 'not equal to' comparison operator, which evaluates to True when the two compared objects have different values. The = symbol is the assignment operator, not a comparison operator; % is the modulus (remainder) operator; and & is the bitwise AND operator. This is documented in Python's standard operator/comparison reference.
Community Discussion