6
What is the output of the following code?
pairs = [(1, 'b'), (2, 'a')]
print(sorted(pairs, key=lambda p: p[1])[0])Medium
What is the output of the following code?
pairs = [(1, 'b'), (2, 'a')]
print(sorted(pairs, key=lambda p: p[1])[0])Log in to join the discussion.