subject

Ou 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). then, print the resulting story, each line of the story on its own line.
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.
in python
words. txt
cat
that
phat
chat
combat
bat
fat
hat
rat
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.
"we said he was phat! " they said as a plea.
i calmed and spoke kindly to the cat with the hat,
"can't we make this into a nice chat? "
and that was the end of that.
story. txt

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Anewly established internet company with 40 employees needs your advice. they are looking for a collaboration tool and have narrowed their choices to gotomeeting, webex, and my web conferences. after reading the information presented in this chapter and other sources, prepare a two- page document ( double spaced) that includes two advantages and two disadvantages of each tool. which one is your final recommendation? why did you choose that tool over the other two?
Answers: 3
question
Computers and Technology, 24.06.2019 18:20
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to make ads relevant but it doesn't load? btw i won't be able to see the answer so use the comments .
Answers: 1
You know the right answer?
Ou are going to create some mad libs. there are two files available: a word list full of common wor...
Questions
question
Mathematics, 06.06.2021 23:20
question
Chemistry, 06.06.2021 23:20
question
Arts, 06.06.2021 23:20
question
English, 06.06.2021 23:30
Questions on the website: 13722367