Write a Python program that will:
Input two filenames, file1 and file2, from the user. Both files are text files and both files must exist. Check to make sure that file1 exists and if so, open it. If not, display an error message and exit the program.
Check to make sure that file2 exists and if so, open it. If not, display an error message and exit the program.
Compare lines from the two files and display them with the differences on the screen. See sample files and output below.
Remember that when Python reads a line from a file, there will be a newline character at the end of the line. Don't remove the newline.
Close both files.
Cozte -3 che 137 file Fellc Mcrle Today Tuesday
Contert? che Z-4 file Hello world Icday Znuracay.
Ouzolt cha Sczeer File Hello Wozlil File 2: Hello world! Diff File Icday Zueaday. File 2: Scday Shuraday. Diff Xxxkkkkit