Answers for "python bitwise xor"

0

bitwise xor Python

def xor(a, b):
    return (a and not b) or (not a and b)
Posted by: Guest on September-20-2021
4

bitwise operators python

OPERATOR DESCRIPTION	      SYNTAX
&	     Bitwise AND          x & y
|	     Bitwise OR           x | y
~	     Bitwise NOT	      ~x
^	     Bitwise XOR	      x ^ y
>>		 Bitwise right shift  x>>
<<		 Bitwise left shift	  x<<
Posted by: Guest on February-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language