human
Convert binary to list of digits Python
assistant
Here is some code to create a list containing the digits values from binary string `x` as elements

[int(d) for d in str(bin(x))[2:]]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.