Ask 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 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. 21 May, 13:36
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers