Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
use python Create a program that reads words.txt (link near top of our home page) in order to . Determine the length of the longest
use python
Create a program that reads words.txt (link near top of our home page) in order to . Determine the length of the longest word(s) and output that length plus the first word of this length found . Determine the length of the shortest word(s) and output that length plus the first word of this length found . Determine and output the average length of all the words in the list. You should strip white space from each word before using its length in your calculations My solution's output is: The longest words are 21 characters; an example is counterdemonstrations The shortest words are 2 characters; an example is ad The average word length is 7.933511409466738Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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