def score(entry):
    return scoring(num_items, entry[0])
return [item for position, item in sorted(enumerate(items_list), key=score)]
In Python, partial function application (currying) versus explicit function definition