Ask Your Question

Revision history [back]

Here is one solution, suggested by the phrasing of the question itself.

Use a product of cycles, individually turning each cycle into a group element:

sage: G = SymmetricGroup(3)
sage: G('(1,2)') * G('(1,2)')
()