Computer Science, asked by 121910312020, 1 month ago

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 rbrindha76
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