(Solved) : Wordstxt Christmas Annual Festival Commemorating Birth Jesus Christ Observed Primarily Dec Q42775063 . . .

Problem 1. Unique Words (unique_words.py) Descriptions: Write a program that opens the text file words.txt and displays a lis

words.txt

Christmas is an annual festival commemorating the birth of Jesus Christ observed primarily on December 25 as a religious and cultural celebration among billions of people around the world Christmas Day is a public holiday in many of the world’s nations and is celebrated religiously by a majority of Christians as well as culturally by many non-Christians and forms an integral part of the holiday season centered around itProblem 1. Unique Words (unique_words.py) Descriptions: Write a program that opens the text file words.txt and displays a list of all unique words found in the file. Please use set processing to do this task. Outputs: $python3 unique_words.py [‘primarily’, ‘billions’, ‘a’, ’25’, ‘observed’, ‘religious’, ‘is’, ‘forms’, ‘cultural’, ‘an’, ‘around’, ‘public’, ‘holiday’, ‘in’, ‘it’, ‘religiously’, ‘celebrated’, “world’s”, ‘christians’, ‘commemorating’, ‘on’, ‘nations’, ‘culturally’, ‘and’, ‘day’, ‘among’, ‘jesus’, ‘as’, ‘celebration’, ‘world’, ‘december’, ‘well’, ‘christ’, ‘by’, ‘festival’, ‘christmas’, ‘majority’, ‘non- christians’, ‘many’, ‘annual’, ‘part’, ‘season’, ‘centered’, ‘the’, ‘birth’, ‘integral’, ‘people’, ‘of’] *Note: your result might be in difference order as mine, which is normal. * There are totally 48 unique words in the file (All words are in lower- case) Show transcribed image text Problem 1. Unique Words (unique_words.py) Descriptions: Write a program that opens the text file words.txt and displays a list of all unique words found in the file. Please use set processing to do this task. Outputs: $python3 unique_words.py [‘primarily’, ‘billions’, ‘a’, ’25’, ‘observed’, ‘religious’, ‘is’, ‘forms’, ‘cultural’, ‘an’, ‘around’, ‘public’, ‘holiday’, ‘in’, ‘it’, ‘religiously’, ‘celebrated’, “world’s”, ‘christians’, ‘commemorating’, ‘on’, ‘nations’, ‘culturally’, ‘and’, ‘day’, ‘among’, ‘jesus’, ‘as’, ‘celebration’, ‘world’, ‘december’, ‘well’, ‘christ’, ‘by’, ‘festival’, ‘christmas’, ‘majority’, ‘non- christians’, ‘many’, ‘annual’, ‘part’, ‘season’, ‘centered’, ‘the’, ‘birth’, ‘integral’, ‘people’, ‘of’] *Note: your result might be in difference order as mine, which is normal. * There are totally 48 unique words in the file (All words are in lower- case)

Expert Answer


Answer to words.txt Christmas is an annual festival commemorating the birth of Jesus Christ observed primarily on December 25 as a…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?