Newbie. Sorry for lame question.
I want to use each bit in an int (binary number) as a boolean.
In essence (this is c"ish" pseudocode):
bitVal = 0x01F; // 32-bit value
for(i=0; i <LIST_SIZE; i++){
if(bitVal[i] == 1)
printf(List[i])
}
So, for Python, I just need to know how to access each bit in the hex value.
UPDATE:
I think i found the way, using bit masking.