Question: Write a module called advancedmatch.py recursive function called match(pattern, word) that can be used to determine if a given pattern matches a given word. In
Write a module called advancedmatch.py recursive function called match(pattern, word) that can be used to determine if a given pattern matches a given word. In this case, a pattern consists of letters and ? and * wildcards. A ? wildcard matches any letter at the corresponding position in the word. A * wildcard matches zero or more letters at the corresponding position in the word. Use aprogram called testadvanced.py that can be used to check your function. Sample I/O: Enter a pattern (or 'q' to quit): l*ad Enter a word: launchpad It's a match. Enter a pattern (or 'q' to quit): *ad Enter a word: lead It's a match. Enter a pattern (or 'q' to quit): **ad Enter a word: lard They don't match. Enter a pattern (or 'q' to quit): q
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
