Код: Выделить всё
string = 'This is a string, with words!'
Код: Выделить всё
list = ['This', 'is', 'a', 'string', 'with', 'words']
Подробнее здесь: https://stackoverflow.com/questions/618 ... t-of-words
Код: Выделить всё
string = 'This is a string, with words!'
Код: Выделить всё
list = ['This', 'is', 'a', 'string', 'with', 'words']