The operator ^ in Python is used for _______.

  • Bitwise XOR
  • Exponentiation
  • Logical NOT
  • String Concatenation
The ^ operator in Python is used for Bitwise XOR, which performs a bitwise exclusive OR operation between two numbers. It flips bits where both numbers have 1s.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *