# How make create all possible lists of twelve elements? [closed]

How can I create all possible lists of twelve elements when each element can be -1 or 1. That is, 2^12 different lists.

• You are looking for all 12-tuples of $\{-1, 1\}$. Tuples is of course the the keyword to look up in the documentation. – Henrik Schumacher Apr 28 '19 at 8:32

You can use Tuples:
res = Tuples[{-1,1}, 12];