Answer:
1
Created on Nov 3, 2018 @author: ASLand
7import atexit
#Read, nanes of both files
Rrintll"Enter tvo files to be compared below
userliamel input ("Enter the nome of the first file: ")
userliame2 input("Enter the name of the second file: ")
ROpen each file
f1 - open(userNamel, r')
@17 f2 = opan(useriame 2, )
tread all the lines into a list
d1 f1.readlines ()
d2 f2.readlines()
re equivalent, print "Yes" else pri
oiterate, and conpare
#11
the
y
if dl == d2:
print("Yes")
atexit
elif for i in range(@, min(len (d1), len(d2))):
if di[i]!=d2[i]:
PCint("No")
print(d1[i])
pcint(d2[])