Question: Write a program that reads the contents of two text files and compares them in the following ways: It should display a list of all
Write a program that reads the contents of two text files and compares them in the following ways: It should display a list of all the unique words contained in the union of both files. It should display a list of the words that only appear in both files. It should display a list of the words that appear in the first file but not the second. It should display a list of the words that appear in the second file but not the first. It should display a list of the words that appear in either the first or second file but not both. Take particular care to be sure that words that are spelled the same, except for case are not considered two different words (e.g. The and the are the same word). Take particular care to be sure that all punctuation is stripped away so that words like, quick and quick, are not considered two different words. The two files you will compare are: first_file.txt and second_file.txt I'm supposed to write this in python. please look through the requirements before answering question. I don't like asking the same question 10 times for the right answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
