The Pool of Tears


Yesterday, we used Python dictionaries to count occurrences of letters and words.  We ended class by writing a program that produced a primitive frequency chart of all the words in chapter one of Alice’s Adventures in Wonderland.

Investigating common words can tell us something about our language patterns.  It turns out that there are only five nouns among the 100 Most Common Words in English.  They are: time, person, year, way, and day.

Today, your assignment is to adapt our “Alice” program so that it displays the number of times the five most common nouns above occur in chapter two of Alice’s Adventures in Wonderland. You will find chapter 2 as a text file in the HS Apps N: drive in our folder. Copy it to your H: drive.

Below is a sample of what your output should look like.
(Note: my numbers are not correct for chapter 2.)

The word time occurs 5 times in Chapter 2.
The word person occurs 34 times in Chapter 2.
The word year occurs 16 times in Chapter 2.
The word way occurs 56 times in Chapter 2.
The word day occurs 2 times in Chapter 2.

Name your file  Use this submission link to submit your program when you are finished.  Also, please copy your output and send it to me in an email.  Good Luck!