What Does The XOR Operator Do?

Python

What does the ^ (XOR) operator do and also how it performs?

2
Answers

Replies

The XOR Operator will generate 1 when it is applied on two different bits 0 and 1.  The result will be 0 if it is applied on the same bits 0 and 0 or 1 and 1.

 

The XOR Operator will generate 1 when it is applied on two different bits 0 and 1.  The result will be 0 if it is applied on the same bits 0 and 0 or 1 and 1.

 
 

If you want to unleash your potential in this competitive field, please visit the Python course page for more information, where you can find the Python tutorials and Python frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
Protected by Astra Security