Please, help me to define the > sortperm function in Python.
I couldn’t find it by myself.
Welcome – this is a forum for the Julia language! See www.julialang.org
There are many other places to ask for Python help, including Google (I would suggest looking at “itertools”).