Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bitwise xor in python

a = 10 # = 1010 (Binary)
b = 4 # =  0100 (Binary)

a ^ b # = 1110
      # = 14 (Decimal)
Source by www.geeksforghttps #
 
PREVIOUS NEXT
Tagged: #bitwise #xor #python
ADD COMMENT
Topic
Name
8+5 =