P
P
Program_Danil2018-07-12 09:58:49
Python
Program_Danil, 2018-07-12 09:58:49

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

1 answer(s)
S
Sergey Gornostaev, 2018-07-12
@Program_Danil

5b46fd00e787b751907681.jpeg
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 question

Ask a Question

731 491 924 answers to any question