Skip to content
Advertisement

How to get a set of words and print in alphabetical order in the output? [closed]

JavaScript

pickle.load(f)`

Advertisement

Answer

The problem was that only a single word was inputted and the sort method has been invoked on it.

Let’s get multiple words, append them to a list and sort them:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement