$ 0 0 you can do like that :bin(10)[2:]or :f = str(bin(10))c = []c.append("".join(map(int, f[2:])))print c