Звучит так, как будто вы ищете itertools.combinations () docs.python.org
list(itertools.combinations([1, 1, 1],3)) [(1, 1, 1)]