Skip to content

Instantly share code, notes, and snippets.

@martianman
Created March 14, 2013 08:22
Show Gist options
  • Save martianman/5159740 to your computer and use it in GitHub Desktop.
Save martianman/5159740 to your computer and use it in GitHub Desktop.
a = bin(999999999)
temp = []
for i, v in enumerate(a):
if v == 1:
temp.append(i)
print temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment