Create a python script that will load homework7WordSearchKey.txt and use


 

Create a python script that will load homework7WordSearchKey.txt and use it to create a word search puzzle, then save that as homework7WordSearchPuzzle.txt. The example of this part was done in class; you may use as much of that as you like as long as you ensure it works on your computer.

Create a second python script that will load your homework7WordSearchPuzzle.txt as well as homework7WordSearchList.txt, and then search the puzzle you’ve created and recreate the block from homework7WordSearchKey.txt.

The horizontal words should be almost trivial. The vertical words will require some careful thought on how to manipulate the strings, and/or how to load the data. There is a single diagonal word that will likely be the most challenging. 

Your code should be able to find words that are in the word list without knowing in advance which direction they are facing (though no words will be backward).

Given text file

homework7wordSearchKey.txt

       M        

  A   EXCEPTION      

  N     T        

 FLOAT    H        

  CHARACTER O        

  O     D   B I    

  N     OPERATOR N    

F  D        O T    

 U VARIABLE   J  LITERAL  

 N       U  E G    

  C      P  A E    

  T     PYTHONSTRING  

   I     T       

   O   SPYDER       

    N    R     

homework7wordSearchList

ANACONDA 

BOOLEAN  

CHARACTER

EXCEPTION

FLOAT   

FUNCTION 

INTEGER  

JUPYTER  

LITERAL  

METHOD  

SPYDER  

STRING  

OPERATOR 

PYTHON  

VARIABLE 

Looking for a Similar Assignment? Our ENL Writers can help. Use the coupon code FIRSTUVO to get your first order at 15% off!