Question: INSTRUCTIONS Open the input file using a with statement. Read the text file ( lpsale . txt ) created in the previous program ( program

INSTRUCTIONS
Open the input file using a with statement.
Read the text file (lpsale.txt)created in the previous program (program6_1.py).
Use f-strings along with any necessary calculations to create a table.
Each row of the table should correspond to a destination, with columns as indicated in the example output.
Format numerical output as a float with 2decimal places. $ signs are not required.
Choose your own column widths but include column headings as shown in the example output.
EXAMPLE OUTPUT
Album TitleArtist(s)Name(s)Discount ($)Total Price after Discount ($)
-------------------------------------------------------------------------------------------------
Dionne Warwick's Golden HitsDionne Warwick2.7320.02
1989Taylor Swift3.2319.87
Meet the Beatles!The Beatles3.0020.05

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!