First time here? Check out the FAQ!
answered 2021-09-21 18:46:14 +0200
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)') ()