Question: Python Language Compare Files Save your work as 06.05 Compare Files.py, download it, and attach it to your assignment You have a two files. You

Python Language
Compare Files Save your work as 06.05 Compare Files.py, download it, and attach it to your assignment You have a two files. You want to compare them line by line and print the differences. Create a program that performs the following: o Opens the file 06.05 CompareFileA.txt file for reading o Opens the file 06.05 CompareFileB.txt file for reading o Read a line from both files o If the line from both files is not the same, print the line number and the contents of both lines o Print the number of differences Copy, paste and save the file below as 06.05 CompareFileA.txt The quick brown fox jumpsx over the lasy dog's back Copy, paste and save the file below as 06.05 CompareFileB.txt The quick brown fox jumps over the lazy dog's back Expected Output Line: 4 - File A: jumpsx Line: 4 - File B: jumps Line: 6 - File A: over the lasy Line: 6 - File B: Over the lazy 2 differences
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
