Question: 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

use python Create a program that reads words.txt (link near top of

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.933511409466738

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!