>>> print '{0:06b} {0:6d}\n{1:06b} {1:6d}'.format(26,6)
011010     26
000110      6

>>> print '{0:06b} {0:6d}'.format( 26 | 6 ) 
011110     30

>>> print '{0:06b} {0:6d}'.format( 26 & 6 )
000010      2

>>> print '{0:06b} {0:6d}'.format( 26 ^ 6 )
011100     28

>>> print '{0:06b} {0:6d}'.format( 6 << 2 )
011000     24

>>> print '{0:06b} {0:6d}'.format( 26 >> 2 )
000110      6

>>> print '{0:06b} {0:6d}'.format( ~ 6  )
