answered 5 years ago
See subgroup() of PermutationGroup:
subgroup()
PermutationGroup
sage: G = SymmetricGroup(4) sage: H = G.subgroup([(1,2)]) sage: list(H) [(), (1,2)]
Here () denotes the identity permutation.
()