Question: This project is to be completed by writing a program in Python 3 . A folder for the project is to be created called music

This project is to be completed by writing a program in Python 3. A folder for the project is to be created called "music_analyzer" and the main module (program file) is to be called "music_analyzer.py". You are to submit a zip file of the "music_analyzer" folder containing the program you wrote.
The following data files contain sample playlist exports from the Apple Music app and iTunes app on macOS. If you want to analyze your own data from Apple Music, select "Songs" under "Library" from the left menu in the Music app and then choose File > Library > Export Playlist...
Music.txt is the export from Apple Music and iTunes_Music.txt is the export from iTunes. These are two different playlists. They do not contain the same data. Your Python program is to work with both provided data files.
Music.txtLinks to an external site.
iTunes_Music.txtLinks to an external site.
Your program is to be able to handle any data file that is formatted like the data from an Apple Music or iTunes playlist export. You are to include the provided data files in the "music_analyzer" folder.
Write a program that meets the following requirements.
Prompt the user for a playlist data file from Apple Music or iTunes to analyze. After the analysis and display of the report for one file, the user is to be prompted if they want to do another file.
The playlist data is formatted like the provided data files. The columns of data are labeled in the first row. You need to determine the data element separator and appropriately handle it. You need to handle that there are labels in the first row. E.g. you must handle the data file as provided.
The program is to load and analyze the data and provide the following summary values.
Total number of songs in the playlist.
The number of songs that were released each year in the playlist.
The song by Name and Artist for the longest song (based on Time) in the playlist. Display all if there is more than one longest with the same time.
The song by Name and Artist for the shortest song (based on Time) in the playlist. Display all if there is more than one shortest with the same time.
For each genre, provide: the number of songs, the longest song by Name and Artist (list multiple if more than one), the shortest song by Name and Artist (list multiple if more than one).
The number of songs that have been played.
The number of songs that have not been played.
The above summary values are to be presented to the user in a nicely formatted, easy to read manner. please help, thanks

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!