Answers for "what is python bitwise operator"

11

python bitwise operators methods

#PYTHON BITWISE OPERATORS
OPERATOR	DESCRIPTION	        SYNTAX  FUNCTION        IN-PLACE METHOD
&	        Bitwise AND	        a & b   and_(a, b)      __and__(self, other)
|	        Bitwise OR	        a | b   or_(a, b)       __or__(self, other)
^	        Bitwise XOR	        a ^ b   xor(a, b)       __xor__(self, other)
~           Bitwise NOT         ~ a     invert(a)       __invert__(self)
<<          Bitwise L shift     a << b  lshift(a, b)    __lshift__(self, other)
>>          Bitwise R shift     a >> b  rshift(a, b)    __irshift__(self, other)
Posted by: Guest on April-19-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

Code answers related to "what is python bitwise operator"

Python Answers by Framework

Browse Popular Code Answers by Language