Mega Code Archive
Categories
/
Python
/
Data Type
Bit calculation
x = 1 # 0001 x << 2 # shift left 2 bits: 0100 print x