human
get all combination of n binary value
assistant
Here is some code to get all combination of n binary values

lst = list(itertools.product([0, 1], repeat=n))

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