EasyOutput prediction
sorted() with key=
What does this code print?
words = ['banana', 'fig', 'apple', 'kiwi'] result = sorted(words, key=len) print(result)
← → arrow keys to navigate
Sign in to save your progress.
What does this code print?
words = ['banana', 'fig', 'apple', 'kiwi'] result = sorted(words, key=len) print(result)
← → arrow keys to navigate
Sign in to save your progress.