Question: TP - 1 5 0 Assignment Input JSON & Output CSV - InstructionsPreparation Needed: - Use your songs.json. If you did this correctly, then these
TP Assignment Input JSON & Output CSV InstructionsPreparation Needed: Use your songs.json. If you did this correctly, then these should be present:o The outermost entity must be a dictionaryo The outer dictionary contains a list of songso Each song is a dictionary.o You have added one keyvalue pair to each song. Each song must have thissame key. Examples: genre, album, rating, or other.Program RequirementsFollow the video provided to create this program.Feel free to change the code in any way. The program must: Contain multiple functions. One of the functions must be a main function. At thebottom of the file, have a call to main this will kickoff the program. The mainfunction will call the other functions.The program will do the following tasks: Read in your input JSON file.o Handle exception if file is not found. If file is not found, print userfriendlymessage and naturally complete the program dont just quit the program Read the data from the input file and display these as list of songs to choose from. Create a playlist variable that is a list data type. Allow the user to choose from the list of songs. Allow user to choose another song,which can be done in a loop. Give the user some kind of an option to allow them toquit selecting. As user chooses each song, append it to the playlist. Once the user is done building the playlist, write the list to an output file.o Output file must be a CSVo Make sure that the CSV contains a header row.o Use the w file mode, so that it overwrites the CSV file if it already exists.Note that the output from your program is a CSV file. You can open up your CSV filewith Excel.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
