Question: read _ words ( filename ) will read a csv file of words passed to it and return a NumPy array of all the words.

read_words( filename ) will read a csv file of words passed to it and return a NumPy array of all the words. This was created using AI in Part 1
read_story( filename ) will read a text file passed to it and return a list of strings from the file. This was created using AI in Part 1
print_words( words_array ) will print the words from the madlib NumPy array by category
create_story( words_array, story_text, outputfile ) will create the story using the base story and the mad lib parts. It will print the story to the screen line by line. Finally, it will append the story text to the file mystory.txt

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!