all possibilities of 0 and 1 code example Example: all possibilities of 0 and 1 from itertools import * >>> a = list(product([0,1],repeat=6))