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
  • 669,327
  • 51
  • 454
  • 560

0 Answers0