Question: Python 3.6 Question 12 Write a function named makeWordList() that takes two parameters: 1. readFileName is a string that is the name of a file
Python 3.6

Question 12 Write a function named makeWordList() that takes two parameters: 1. readFileName is a string that is the name of a file containing text 2. writeFileName is a string that is the name of a file that makeWordList() writes its output to. Each line in the output file should consist of one of the words in the input file, followed by a space, followed by the number of occurrences of that word in the input file, including both capitalized and lower case occurrences. You may assume that the file contains only letters no numbers or punctuation rniarks. For example, if the input file contains the following text You can steer yourself any direction you choose then the output file should have the following content: any 1 yourself 1 choose 1 you 2 direction 1 can 1 steer 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
