Untitled

 avatar
unknown
plain_text
2 years ago
238 B
5
Indexable
# слова words вивести в порядку, в якому вони зустрічаються в sentence

sentence = "hi world im here done that"
words = ["done", "world", "here"]

print(sorted(words, key=sentence.index))
Editor is loading...