Question: 1 . Create a Python program file called Ch 0 8 - 1 _ Name.py . ( Replace Name with your initial of first name
Create a Python program file called ChName.pyReplace Name with your initial of first name and first letters of last name. If your last name is shorter than letters, just use full last name, it doesn't have to be letters. ie if your name is John Doe, your file name should be ChJDoe.py
Your program will take a file name from user, access the file and find out all the words in the file and list them in alphabetical order. Make sure every word is listed only once. Also state how many words are found in the file as sample output shows.
Also, ask user if user wants to repeat and depends on the answer, your program needs to terminate or repeat.
If user enters wrong information wrong name of the file or nonexisting file name your program needs to display message and ask for correct input. Your program should not generate traceback message with any input.
File:Textsample
Programmers add an operating system and a set of applications to the hardware
and we end up with a Personal Digital Assistant that is quite helpful and capable
of helping us do many different things
File:Textsample
Our computers are fast and have vast amounts of memory and could be very helpful
to us if we only knew the language to speak to explain to the computer what we
would like it to do next If we knew this language we could tell the computer
to do tasks on our behalf that were repetitive Interestingly the kinds of things
computers can do best are often the kinds of things that we humans find boring
and mind numbing
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
