Skip to content

Instantly share code, notes, and snippets.

a = bin(999999999)
temp = []
for i, v in enumerate(a):
if v == 1:
temp.append(i)
print temp
[22:18:32] <@BFB> I linked that to you months ago.
[22:18:39] <cmr> I know
[22:18:48] <cmr> And I'm relinking it to you, and it will be stuck in your head for weeks
[22:18:50] <cmr> Muahahah
[22:18:55] <@BFB> Simpler times.
[22:18:59] <@BFB> Before the police.
[22:19:04] <@BFB> Before Sarah.
[22:19:14] <cmr> Before the fire nation attacked
[22:19:42] <@BFB> LOL