You are going to create some Mad Libs. There are two files available: a word list full of common words ("words.txt"), and a short story ("story.txt"). Process both files line-by-line in order to replace the words from the first file in the short story with the string "____" (four underscores). Replace every occurrence of each word, in the order of the word list, even inside a longer word (as replace does). Then, print the resulting story, each line of the story on its own line.
The files are in words.txt and story.txt, and in the words.txt and story.txt tabs of the sandbox (To sandbox).
The first lines of words.txt:
cat
that
phat
chat
combat
bat
...
The first lines of story.txt:
The cat in the hat came back the other day, chasing a bat and a rat.
I asked the cat in the hat why the bat and the rat were his combat.
He said, "that bat and the rat said I was fat!"
The bat and the rat groaned and turned to me.
...
One issue you may encounter: You cannot loop through a file again after you have read its contents once. Solve this issue by storing the words file in a list before processing the story.
You may find it helpful to keep in mind the mutability of certain types. You may also use the built-in replace method for strings. Refer to the string documentation for more information on using this method.