Given a query string s and a list of all possible words, return all words that have s as a prefix.
Example 1:
Input:
s = “de”
words = [“dog”, “deal”, “deer”]
Answers
Answered by
0
Answer:
def suffix_words(suffix, word):
if word.endswith(suffix):
print("Ends with {}").format(suffix)
suffix="ly"
word="quickly"
suffix_words(suffix, word)
Explanation:
Similar questions