Answer the question
In order to leave comments, you need to log in
How to sort words from a list in a for loop?
I can't figure out how to sort words alphabetically in a for loop. Why does it happen that not the words are sorted into a column, but the letters of the words that are displayed in the lists?
Answer the question
In order to leave comments, you need to log in
At each iteration of the loop, you get a word from the list, sort the characters of this word and output them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question