$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #148

Fill in the blank

# longest word first
words.sort(____=len, reverse=True)

Answer: key (also accepted: key, key())

The key argument names the function used to rank each item.
Play Problem Solving ▸