Question: In Python please: Create a program called Dif. This program should prompt the user for the names of two text files and compare the contents
In Python please:
Create a program called Dif. This program should prompt the user for the names of two text files and compare the contents of the two files to see if they are the same. If they are, the program should simply output Yes to the console. If they are not, the script should output No, followed by the first lines of each file that differ from each other. The input loop should read and compare lines from each file. The loop should break as soon as a pair of different lines is found.
These files are the names that contain text for testing.
Text1
Text2
Text3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
