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

What goes in the blank?

# sort pairs by the second field
pairs.sort(key=____ p: p[1])

Answer: lambda (also accepted: lambda, lambda())

lambda builds a small anonymous function inline.
Play Problem Solving ▸