| 1 | initial version |
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)')
()
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.