Ask Question
7 March, 23:23

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.

+4
Answers (1)
  1. 8 March, 00:56
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers