0
f1 = open("mysample.txt", "r")
f2 = open("mysample2.txt", "r")
# go with first line to read
    for line1 in f1:
            for line2 in f2:
                    if line1==line2:
                        print("SAME\n")
                    else:
                         print("Line is Note Matched" + str(line1) + str(line2))
           
     f1.close()
     f2.close()          
break
Barmar
  • 741,623
  • 53
  • 500
  • 612

0 Answers0