>>> import itertools >>> lnums = (list(itertools.permutations([0, 1], 2))) >>> print(lnums[0]) (0, 1) >>> print(lnums[1]) (1, 0)