Question: please provide the python code. This is working with sets and dictionaries. I have provided a screen shot of the text.txt file so please use
please provide the python code. This is working with sets and dictionaries. I have provided a screen shot of the text.txt file so please use that.
b Unique Words
Write a program that opens a specified text file then displays a list of all the unique words found in the file. A word is defined as made up of letters only. No numbers, commas etc. are part of the word. Include the frequency of the occurrence of each word points
Also, displaythe total count of the unique words found. points
The text file to use
Hint: Store each word as an element of a set required File Edit View
No one is unaware of the name of that famous English shipowner, Cunard.
In this shrewd industrialist founded a postal service between Liverpool and Halifax, featuring three wooden ships with horsepower paddle wheels and a burden of metric tons.
Eight years later, the company's assets were increased by four horsepower ships at metric tons, and in two more years, by two other vessels of still greater power and tonnage.
In the Cunard Co whose mailcarrying charter had just been renewed, successively added to its assets the Arabia, the Persia, the China, the Scotia, the Java, and the Russia, all ships of top speed and, after the Great Eastern, the biggest ever to plow the seas.
So in this company owned twelve ships, eight with paddle wheels and four with propellers.
If I give these highly condensed details, it is so everyone can fully understand the importance of this maritime transportation company, known the world over for its shrewd management.
No transoceanic navigational undertaking has been conducted with more ability, no business dealings have been crowned with greater success.
In twentysix years Cunard ships have made Atlantic crossings without so much as a voyage canceled, a delay recorded, a man, a craft, or even a letter lost.
Accordingly, despite strong competition from France, passengers still choose the Cunard line in preference to all others, as can be seen in a recent survey of official documents.
Given this, no one will be astonished at the uproar provoked by this accident involving one of its finest steamers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
