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

What goes in the blank?

# sort by the second element of each pair
pairs.sort(key=lambda p: p[____])

Answer: 1 (also accepted: 1)

Indexes are zero-based, so the second element is index 1.
Play Problem Solving ▸