SymPy | Permutation.is_even() in Python Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report Permutation.is_even() : is_even() is a sympy Python library function that checks whether the permutation is even. Syntax : sympy.combinatorics.permutations.Permutation.is_even() Return : true - if the permutation is even; otherwise false Code #1 : is_even() Example Python3 1=1 # Python code explaining # SymPy.Permutation.is_even() # importing SymPy libraries from sympy.combinatorics.partitions import Partition from sympy.combinatorics.permutations import Permutation # Using from sympy.combinatorics.permutations.Permutation.is_even() method # creating Permutation a = Permutation([[2, 0], [3, 1]]) b = Permutation([1, 3, 5, 4, 2, 0]) print ("Permutation a - is_even form : ", a.is_even) print ("Permutation b - is_even form : ", b.is_even) Output : Permutation a - is_even form : True Permutation b - is_even form : False Code #2 : is_even() Example - 2D Permutation Python3 1=1 # Python code explaining # SymPy.Permutation.is_even() # importing SymPy libraries from sympy.combinatorics.partitions import Partition from sympy.combinatorics.permutations import Permutation # Using from sympy.combinatorics.permutations.Permutation.is_even() method # creating Permutation a = Permutation([[2, 4, 0], [3, 1, 2], [1, 5, 6]]) print ("Permutation a - is_even form : ", a.is_even) Output : Permutation a - is_even form : True Comment More infoAdvertise with us Next Article SymPy | Permutation.is_even() in Python N noobestars101 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads SymPy | Permutation.is_Empty() in Python Permutation.is_Empty() : is_Empty() is a sympy Python library function that checks whether the permutation is a set with zero elements. Syntax : sympy.combinatorics.permutations.Permutation.is_Empty() Return : true : if empty; otherwise false Code #1 : is_Empty() Example Python3 1=1 # Python code ex 1 min read SymPy | Permutation.list() in Python Permutation.list() : list() is a sympy Python library function that returns the permutation as an explicit list, possibly trimming unmoved elements if size is less than the maximum element in the permutation. Syntax : sympy.combinatorics.permutations.Permutation.list() Return : permutation as an exp 2 min read SymPy | Permutation.is_Identity() in Python Permutation.is_Identity() : is_Identity() is a sympy Python library function that checks whether the Permutation is an identity permutation. Syntax : sympy.combinatorics.permutations.Permutation.is_Identity() Return : true - if he Permutation is an identity permutation; otherwise false Code #1 : is_ 1 min read SymPy | Permutation.min() in Python Permutation.min() : min() is a sympy Python library function that returns the minimum value in the permutation. Syntax : sympy.combinatorics.permutations.Permutation.min() Return : minimum value in the permutation Code #1 : min() Example Python3 1=1 # Python code explaining # SymPy.Permutation.min() 1 min read SymPy | Permutation.is_odd() in Python Permutation.is_odd() : is_odd() is a sympy Python library function that checks whether the permutation is odd. Syntax : sympy.combinatorics.permutations.Permutation.is_odd() Return : true - if the permutation is odd; otherwise false Code #1 : is_odd() Example Python3 1=1 # Python code explaining # S 1 min read Like