5
What is the output of the following code?
words = ['pear', 'fig', 'banana']
print(sorted(words, key=len))Easy
What is the output of the following code?
words = ['pear', 'fig', 'banana']
print(sorted(words, key=len))Log in to join the discussion.