Question: [ bonus ( 1 0 points ) ] Statisticians used word frequency analysis to determine the author of the 1 2 unknown federalist papers ?
bonus points Statisticians used word frequency analysis to determine the author of the unknown federalist papers ; basically, they counted how many times James Madison and Alexander Hamilton used individual words and noticed that Hamilton used "upon" way more than Madison. In this way, they were able to tell who wrote the papers whose author was unknown.
Let's write a Python program to count how many times a given word appears in a sentence it sure beats cutting out the individual words and then handsorting, which is how they did it before computers You'll need to look up a string method for this, called "count", and maybe some other methods. video demo
a points What variables will we need to make? What variables will be inputs from the user? What variables will be outputs?
b points Write the code in a repl and paste the link here.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
