Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use a desktop location. Please produce output. Write a Python program that reads the text file below as an input file. (First save this file
Use a desktop location. Please produce output.
Write a Python program that reads the text file below as an input file. (First save this file to your system, and put it in a folder where your Python program can find it or make sure you tell your Python program exactly where it can be found.) As you process the file, do the following: Strip out all punctuation (including periods, apostrophes, quotation marks, commas, etc.). Count the words. Add up the total length of all the words. Calculate the average word length. Output the values you calculated in steps 2, 3, 4 above. Be sure to preface each value with info about what the number means (for example, "Total words in the file is 251.")Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started