Question: Write a script that reads a string with several words (use a book paragraph at least 50 words). Determine all unique words and calculate frequency
Write a script that reads a string with several words (use a book paragraph at least 50 words). Determine all unique words and calculate frequency for each word. Perform two different plots with this data: Bar plot: the x axis represents the word the y axis represents the frequency (how many times the word appears in the string) Scatter plot: the x axis represents the word and the y axis represents the frequency. Use different sizes and color for each word. Plot words with higher frequency with larger points (circles)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
