#NEWLINE# def symmetric( n ) : #NEWLINE# #INDENT# '\n    Generates the symmetric group of order n, Sn.\n\n    Examples\n    ========\n\n    >>> from sympy.combinatorics.permutations import Permutation\n    >>> Permutation.print_cyclic = True\n    >>> from sympy.combinatorics.generators import symmetric\n    >>> list(symmetric(3))\n    [(2), (1 2), (2)(0 1), (0 1 2), (0 2 1), (0 2)]\n    ' #NEWLINE# for perm in variations ( list ( range ( n ) ) , n ) : #NEWLINE# #INDENT# ( yield Permutation ( perm ) )