Question: Download romeo.txt and make a py script called romeoStorage.py. The script should open the file romeo.txt and read it line by line. For each line,

Download romeo.txt and make a py script called romeoStorage.py.

The script should open the file romeo.txt and read it line by line. For each line, split the line into a list of words using the split function.

As you read words from the file, keep both a list and a dictionary of the unique words. The dictionary should keep a count of the unique worlds as the value, while the word should be the key. When the program completes, sort and print the resulting words in alphabetical order.

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!