fork(33) download
  1. import itertools
  2. print list(itertools.product([0, 1], repeat=3))
Success #stdin #stdout 0.08s 8840KB
stdin
Standard input is empty
stdout
[(0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0), (1, 1, 1)]