create a all binary combinations of size n python code example
Example: numpy combinations of 5 bits
import itertools
lst = list(itertools.product([0, 1], repeat=3))
import itertools
lst = list(itertools.product([0, 1], repeat=3))