I tried to do the little challenge the exercise 8 has, not to use the OR ‘|’ operator. I did it with lists and my problem is that, i get the correct result but in a string form. How i can do it in binary again. I will post only the first 3 and the last lines of code where my question is.```
print rlst #prints ['0', 'b', '1', '0', '1', '1', '1', '1'] rrlst=''.join(rlst) print 'printing the 0b101111 gives', 0b101111 #prints 47 print 'printing the rrlst which is 0b101111 gives', rrlst #prints 0b101111 print type(rrlst) #checking what i got in the end ==> 'str'
I want rrlst to print 47 not 0b101111