Untitled
Anonymous
plain_text
04/13/2023 8:49 PM
320 B
17
Indexable
# слова words вивести в порядку, в якому вони зустрічаються в sentence sentence = "hi world im here done that" words = ["done", "world", "here"] print(sorted(words, key=sentence.index))
Editor is loading...