Skip to content

Instantly share code, notes, and snippets.

@dgonzo
Created September 30, 2013 19:17
Show Gist options
  • Save dgonzo/6768715 to your computer and use it in GitHub Desktop.
Save dgonzo/6768715 to your computer and use it in GitHub Desktop.
>>> x = 1 + 4
>>> y = x & 0x01
>>> x
5
>>> y
1
>>> x = x >> 1
>>> x
2
>>> y = x & 0x01
>>> y
0
>>> x = x >> 1
>>> x
1
>>> y = x & 0x01
>>> y
1
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment