Question: Write a program that contains a function string _ input which takes a string as input from a user, and writes the string to a
Write a program that contains a function stringinput which takes a string as input from a user, and writes the string to a file called filestring.txt
Next, write another function stringprounounsin the program that reads the string from the file and prints the number of subject pronouns found in the text. Subject pronouns include he she, it they, we you.
Hint: you will need to use the split method to split the sentence into words. If a word is one of the subject pronouns, then count it
Make sure you use exception handling code to handle any exceptions that may be raised.
Sample run:
Enter some text: he said he is sad but we disagree.
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
