[Solved]Check Whether New Jersey Home Mit Print Result 4 Question 12 20 Points Write Function Name Q37276609
PLEASE HELP #12 IN PYTHON

check whether New Jersey is home of MIT and print the result 4. Question 12 (20 points) Write a function named wordlineCount with the following input and output: Input: a string parameter, inFile, that is the name of a file Output: return a dictionary in which each unique word in inFile is a key and the corresponding value is the number of lines on which that word occurs The file inFile contains only lower case letters and white space. For example, if the file ben. txt contains these lines: tell me and i forget teach me and i remember involve me and i learn then the following would be correct output >» print (wordLineCount( ‘ben.txt’)) f’remember’: 1, and: 3, ‘tell’: 1, ‘me’ 3, forget’: 1, ‘learn’: 1, involve: 1, ‘i’: 3, ‘teach’: 1) Scale document down Show transcribed image text check whether New Jersey is home of MIT and print the result 4. Question 12 (20 points) Write a function named wordlineCount with the following input and output: Input: a string parameter, inFile, that is the name of a file Output: return a dictionary in which each unique word in inFile is a key and the corresponding value is the number of lines on which that word occurs The file inFile contains only lower case letters and white space. For example, if the file ben. txt contains these lines: tell me and i forget teach me and i remember involve me and i learn then the following would be correct output >» print (wordLineCount( ‘ben.txt’)) f’remember’: 1, and: 3, ‘tell’: 1, ‘me’ 3, forget’: 1, ‘learn’: 1, involve: 1, ‘i’: 3, ‘teach’: 1) Scale document down
Expert Answer
Answer to check whether New Jersey is home of MIT and print the result 4. Question 12 (20 points) Write a function named wordlineC… . . .
OR

