First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 3 years ago

Max Alekseyev gravatar image

Permutation p is viewed as a function, and so its action on a point is just the result of this function:

p = Permutation('(5,17)')
print( p(5) )