Question: First, make a file called 'words.txt' containing a paragraph with at least 100 words. You can do this with a word processor if you like.
First, make a file called 'words.txt' containing a paragraph with at least 100 words. You can do this with a word processor if you like. Then, make a Python code that will Ask the user for a file name Look at each word in the file and turn it into lower case plus remove punctuation Count the frequency of each letter a-z Output the frequency in a file called 'histogram.txt' where each line is a single letter followed by a tab followed by the frequency count One result per line (by using \t.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
