def symmetric(n):
    for perm in variations(list(range(n)), n):
        yield Permutation(perm)
Generates the symmetric group of order n, Sn.
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/generators.py/symmetric