LogiQuest
Back to Lambda and Functional Tools
5

What is the output of the following code?

words = ['pear', 'fig', 'banana']
print(sorted(words, key=len))
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.

What is the output of the following… | LogiQuest