Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function which uses the function you wrote in Q2 to generate a random sample, and the function from Q1 to generate 3 frequency
Write a function which uses the function you wrote in Q2 to generate a random sample, and the function from Q1 to generate 3 frequency dictionaries - one for each book (Frankenstein, War of the Worlds, and Murder On the Links). Then go through each of the words in your 100 word random sample and return a new dictionary which has the word as the key, and a list of the frequencies in the 3 works as the value.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started