Question: Problem Description For this project you will construct a program that will search a list for words that match a specified pattern. For example, given

Problem Description
For this project you will construct a program that will search a list for words that match a specified pattern. For example, given the following list of words:
amble
apple
box
echoes
fox
school
tumble
and the pattern:
_cho__
the program will find and print out:
[echoes, school]
Note that the only words in the list of seven words above that match the pattern _cho__ are echoes and school. These two words match the pattern because the pattern specifies a six letter word that has the letters c, h, and o as the second, third, and fourth letters. In the pattern, an underscore (_) specifies any single letter.
_ c h o __
e c h o e s
s c h o o l

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!