Write a Python program to combine each line from first file with the corresponding line in second file.
Define a function that takes 3 filepaths(type: strings) as parameters. The function should combine lines from first file with corresponding lines in the second file. Save the results in the 3rd filepath.
File1:
A for
B for
C for
D for
File2:
Apple.
Ball.
Cat.
Dog.
File3:
A for Apple.
B for Ball.
C for Cat.
D for Dog.