QuestionQ239

VerifiedComputer Programming and Python Fundamentals

What output is expected from the following code?

Question Image

Explanation

For the integers 1 and 0, bitwise AND evaluates to 0, bitwise OR evaluates to 1, and bitwise XOR evaluates to 1. Adding these values produces 2.

Community Discussion

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