Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

binary operation python

x << y
"left shifted x by y places"
x >> y
"right shift x by y places"
x & y
"bitwise and"
x | y
"bitwise or".
~ x
"Complement of x"
x ^ y
"bitwise exclusive or"
Source by wiki.python.org #
 
PREVIOUS NEXT
Tagged: #binary #operation #python
ADD COMMENT
Topic
Name
8+6 =