Python | SymPy Partition.sort_key() method
Partition.sort_key() : sort_key() is a sympy Python library function that returns canonical key which can be used for string. This ordering of canonical key is based on the size and the elements of the partition whose ties are broken with the rank.
Syntax : sympy.combinatorics.partitions.Partition.sort_key()
Return : Canonical key which can be used for string
Code #1 : sort_key() Example
Python3 1=1
Contact Us