176k views
3 votes
**PYTHON PLEASE**LAB: 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:


z

hello zoo sleep drizzle

the output is:

zoo,drizzle,


For coding simplicity, follow each output word by a comma, even the last one. Do not end with newline.

User Pawel Czyz
by
7.5k points

1 Answer

6 votes

Answer: the output is zoo,drizzle, hello zoo sleep drizzle

Step-by-step explanation:

User Xjedam
by
8.4k points

No related questions found