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

What goes in the blank?

# sort by the second field, descending
rows.sort(key=lambda r: r[1], ____=True)

Answer: reverse (also accepted: reverse)

reverse=True flips the order after the key is applied.
Play Problem Solving ▸