Apr-15-2019, 07:19 PM
So I can only use functions with a single argument? If my sort value required using 2+ arguments, I'd have to first assign a variable to the return value of the function, then refer to the variable in the sort method?
someVariable = MyFn(10, True, 'Fred') print(sorted(strs, key=someVariable)