r = '' x = ord('a') while ((x/2) != 0): if ((x % 2) == 0): r = r+'0' else: r = r+'1' x = x / 2 print(c2byte('a'))