Question: Write a program that opens a specified text file then displays a list of all the unique words found in the file in ascending order.
Write a program that opens a specified text file then displays a list of all the unique words found in the file in ascending order.
Hint: Store each word as an element of a set.
text.txt
When the sun goes down we'll be groovin'
When the sun goes down we'll feel alright
When the sun sinks down over the water
Everything gets hotter when the sun goes down
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
