Question: ( 1 0 pts ) Write a function called find _ words ( ) that looks for words in boxes - of - letters that

(10 pts) Write a function called find_words () that looks for words in boxes-of-letters that
appear in a file. The function takes the name of a file (string) and list of words (list of strings). The
function generates a dictionary that reports which words were found in each box-of-letters.
Error Handling:
This function should not break if the filename given does not match any files. In this case, the
function should return the string 'filenot found'.
Assumptions:
The word will appear vertically (down) or horizontally (left-to-right), only.
The box of letters is square.
The words being sought are exactly three letters.
File format: Each line of the file is a comma-separated listing of the letters (See
examples)
Dictionary format: The key is a string ("box1", "box2", etc), the value is a list of the
words from the word_list that appear in each letter box.
( 1 0 pts ) Write a function called find _ words

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 Programming Questions!