use Python datetime module, strftime
Write a program that processes the following textfile and printsthe report shown below.
Textfile:
- Ask the user for the filename and BE SURE TO CHECK THAT ITEXISTS.
- The file will contain lines which each contain 2 strings(bookTitle and publicationDate) separated by a comma and a space.Note that the title of the book might contain spaces!
- Example of the textfile:
Gone Girl, 5-24-2012
To Kill A Mockingbird, 7-11-1960
Harry Potter and the Sorcerer’s Stone, 6-26-1997
Output: print the title and the publication date formatted intwo ways (using strftime)
Example output:
Title                                                    PublicationDate          Alternate Date
GoneGirl                                            May 24,2012               5/24/12
To Kill AMockingbird                           July 11,1960                7/11/60
Harry Potter and the Sorcerer’s Stone   June 26,1997              6/26/97