with open('textfile1') as textfile1:
    with open('textfile2') as textfile2:
        for x, y in zip(textfile1, textfile2):
            x = x.strip()
Read two textfile line by line simultaneously -python