[Solved] Program that compares files [closed]


Something like this (I did not check syntax):

with open("file1.txt","r") as f1:
    with open("file2.txt","r") as f2:
        for line1, line2 in zip(f1.readlines(), f2.readlines()):
            print(line1 + line2)

4

solved Program that compares files [closed]