QuestionQ10

VerifiedPython/PyEZ

Which Python operator is used to compare two objects for inequality?

Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!