I want to do something like
for a in [0..1]: for b in [0..1]: for c in [0..1]: do something
But, I might have 15 di
itertools.product:
import itertools for a,b,c in itertools.product([0, 1], repeat=3): # do something