Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

bitwise xor in python

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

a ^ b # = 1110
      # = 14 (Decimal)
Comment

PREVIOUS NEXT
Code Example
Python :: boto3 rename file s3 
Python :: swapping variables 
Python :: python dictionary print key value ascending order 
Python :: python cat 
Python :: dictionary increment 
Python :: python comments 
Python :: .replace python 
Python :: two underscores python 
Python :: pyside click through window 
Python :: convert rgb image to binary in pillow 
Python :: for each in python 
Python :: examples of function in python 
Python :: dockerize django 
Python :: Iterating With for Loops in Python 
Python :: python with braces 
Python :: how to create a 2d array in python 
Python :: dynamic footer in django 
Python :: python separate strings into characters 
Python :: get time and dates string 
Python :: python function create null matrix 
Python :: python range from n to 0 
Python :: strip plot (normal) 
Python :: fix the size of a deque python 
Python :: remove rows from dataframe 
Python :: Join query flask-sqlalchemy 
Python :: lower method in python 
Python :: are logN and (lognN) same 
Python :: creating a dictionary 
Python :: python basic data types 
Python :: django forms 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =