import itertools
length = 3
result = itertools.combinations(
    [*[True, False] * length],
    length
)
print([list(r) for r in result])