Ask Question
25 October, 08:22

Contains the character Write a program that reads a character, then reads in a list of words. The output of the program is every word in the list that contains the character at least once. Assume at least one word in the list will contain the given character. Ex: If the input is: hello zoo sleep drizzle the output is: zoo drizzle Keep in mind that the character 'a' is not equal to the character A.

+5
Answers (1)
  1. 25 October, 11:10
    0
    ch=str (input (""));

    L=str (input ("")). split (" ");

    for i in range (len (L)):

    st=L[i];

    for j in range (len (st)):

    if (st[j]==ch):

    print (st);

    break;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Contains the character Write a program that reads a character, then reads in a list of words. The output of the program is every word in ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers