What does the ^ (XOR) operator do? [duplicate]

This question already has answers here: What does the caret operator (^) in Python do? (5 answers) Closed 9 months ago.

What mathematical operation does XOR perform?

Leave a Comment