Untitled
unknown
plain_text
3 years ago
238 B
6
Indexable
# слова words вивести в порядку, в якому вони зустрічаються в sentence sentence = "hi world im here done that" words = ["done", "world", "here"] print(sorted(words, key=sentence.index))
Editor is loading...