Question: help? #python use a songs.json file (example) > refer to https://www.chegg.com/homework-help/questions-and-answers/please-help-python-itp-150-assignment-create-json-song-file-instructions-assignment-create-q99505142?trackid=c76a ITP-150 - Assignment - Input JSON & Output CSV - Instructions Preparation Needed: -

 help? #python use a songs.json file (example) > refer to https://www.chegg.com/homework-help/questions-and-answers/please-help-python-itp-150-assignment-create-json-song-file-instructions-assignment-create-q99505142?trackid=c76a

help? #python

use a songs.json file (example) >

refer to https://www.chegg.com/homework-help/questions-and-answers/please-help-python-itp-150-assignment-create-json-song-file-instructions-assignment-create-q99505142?trackid=c76a

ITP-150 - Assignment - Input JSON \& Output CSV - Instructions Preparation

ITP-150 - Assignment - Input JSON \& Output CSV - Instructions Preparation Needed: - Use your songs.json. Ifyou did this correctly, then these should be present: o The outermost entity must be a dictionary o The outer dictionary contains a list of songs o Each song is a dictionary. o You have added one key/value pair to each song. Each song must have this same key. Examples: genre, album, rating, or other. Program Requirements Follow 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 the bottom of the file, have a call to main - this will "kick-off" the program. The main function will call the other functions. The program will do the following tasks: - Read in your input Json file. 0 Handle exception if file is not found. If file is not found, print user-friendly message and naturally complete the program (don't just quit the program) - Read the data from the input file and display these as list of song to choose from. - Create a playlistvariable 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 to quit 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 csv. - Make sure that the CSV contains a header row. 0 Use the "w" file mode, so that it ovenurites the CSV file if it already exists. Note that the output from your program is a CSV file. You can open up your CSV file with Excel. songs.json

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 Databases Questions!