SymPy | Subset.rank_lexicographic() in Python
Subset.rank_lexicographic() : rank_lexicographic() is a sympy Python library function that returns the lexicographic ranking of the subset. Syntax : sympy.combinatorics.subset.Subset.rank_lexicographic() Return : the lexicographic ranking of the subset. Code #1 : rank_lexicographic() Example Python3