'''Question: 
Write a Python program to combine each line from first file with the corresponding line in second file.
'''

# Python code: 

with open('abc.txt') as fh1, open('test.txt') as fh2:

    for line1, line2 in zip(fh1, fh2):

        # line1 from abc.txt, line2 from test.txtg

        print(line1+line2)

		

'''Output sample: 
Red                                                                                                           

Welcome to w3resource.com.                                                                                    

                                                                                                              

Green                                                                                                         

Append this text.Append this text.Append this text. 

------

Yellow                                                                                                        

Append this text.

'''