answered 3 years ago
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)') ()