secret 11001100110110 secret int secret tmp secret string while tmp st

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
secret = '11001100110110'
secret = int(secret, 2)
tmp = secret
string = ''
while tmp:
string += chr(tmp & 0b11111111)
tmp >>= 8
print string