PYTHON CODE ONLY:
Given the string, s, and the list, lst, associate the variable contains with True if every string in lst appears in s (and False otherwise). Thus, given the string Hello world and the list ["H", "wor", "o w"], contains would be associated with True.

Answer :

tostuti

Answer:

lst=["H", "wor", "o w"]

s='Hello world'

contains = True

for i in range (0, len(lst)):

 if not lst[i] in s:

   contains = False

   break

Explanation:

Above code works fine if you make sure that identation is correct.

Other Questions