maths/permutations.py
def inverse(self):
        """
        Return the permutation u such as the composition of u and t is the identity
        :type t: Permutation
        :return:
        """
        n = len(self.data)
        i = [0 for k in range(n)]

        for k in range(n):
            i[self.data[k]] = k

        return Permutation(i)

        Return the permutation u such as the composition of u and t is the identity
        :type t: Permutation
        :return:
        
Return the permutation u such as the composition of u and t is the identity
Return the permutation u such as the composition of u and t is the identity
def inverse(self):
        n = len(self.data)
        i = [0 for k in range(n)]
        for k in range(n):
            i[self.data[k]] = k
        return Permutation(i)
def inverse ( self ) : n = len ( self . data ) i = [ 0 for k in range ( n ) ] for k in range ( n ) : i [ self . data [ k ] ] = k return Permutation ( i )
Return the permutation u such as the composition of u and t is the identity
Return the permutation u such as the composition of u and t is the identity
"""
        Return the permutation u such as the composition of u and t is the identity
        :type t: Permutation
        :return:
        """
None
self