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

Fill in the key function.

words.sort(key=____)  # sort by word length

Answer: len (also accepted: len)

Passing len as the key sorts by each item's length.
Play Problem Solving ▸