Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi, this question is from The Practice of Computing Using Python (3rd Edition) I

ID: 3834039 • Letter: H

Question

Hi, this question is from The Practice of Computing Using Python (3rd Edition)

It is in Chapter 9 Problem 2pp

We have to organize our itunes library, we put our metadata from itunes into a text file

The text file I used was called itunes.txt(information was directly copied and pasted from file)

At the bottome I included some sample information from the text file.

If possible, don't do/use anything advanced, this is for an introductory

a) Read the metadata from a file into a dictionary

b)Loops to repeatedly prompt for

i)Name: list all songs by the specified artist

ii)Album: list all songs on the specified album

iii) Genre: list all songs in a specified genre

iv)Add: add a song

v)Delete: delete a specified song(specify its name)

vi) Popular: find the artist with the most songs in your collection

vii)Longest: find the longest song in your collection and print its metadata

Thankyou

Dark Sky (Skyscrapers)       2:58   Big Sean   Dark Sky Paradise   Rap   0   11
Blessings (feat. Drake)       4:12   Big Sean   Dark Sky Paradise   Rap   0   6
All Your Fault (feat. Kanye West)       3:44   Big Sean   Dark Sky Paradise   Rap   0   13
Win Some, Lose Some       5:05   Big Sean   Dark Sky Paradise   Rap   0   3
Stay Down       4:11   Big Sean   Dark Sky Paradise   Rap   0   12
I Know (feat. Jhené Aiko)       5:20   Big Sean   Dark Sky Paradise   Rap   0   3
Deep (feat. Lil Wayne)       4:36   Big Sean   Dark Sky Paradise   Rap   0   4
One Man Can Change The World (feat. Kanye West & John Legend)       4:15   Big Sean   Dark Sky Paradise   Rap   0   9
Outro       3:44   Big Sean   Dark Sky Paradise   Rap   2   6
Deserve It (feat. PARTYNEXTDOOR)       4:21   Big Sean   Dark Sky Paradise   Rap   0   8
Research (feat. Ariana Grande)       3:50   Big Sean   Dark Sky Paradise   Rap   0  
Platinum and Wood       2:43   Big Sean   Dark Sky Paradise   Rap   0   8
ULT       4:07   Denzel Curry   Imperial   Rap   0   19
Gook       2:47   Denzel Curry   Imperial   Rap   0   23
Sick & Tired       4:03   Denzel Curry   Imperial   Rap   0   10
Knotty Head (Ft. Rick Ross)       4:34   Denzel Curry   Imperial   Rap   0   12
Narcotics5       3:32   Denzel Curry   Imperial   Rap   0   3
Story - No Title       2:49   Denzel Curry   Imperial   Rap   0   15
Pure Enough       3:49   Denzel Curry   Imperial   Rap   0   3
This Life ft. Ronny J       3:27   Denzel Curry   Imperial   Rap   0   11
Over My Dead Body       4:32   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0  
Shot for Me       3:45   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0  
Headlines       3:56   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0   3
Crew Love (feat. The Weeknd)       3:29   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0   1
Take Care (feat. Rihanna)       4:37   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0  
Marvins Room       5:47   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0  
Buried Alive Interlude (feat. Kendrick Lamar)       2:31   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   0  
Under Ground Kings       3:33   Drake   Take Care (Deluxe Version)   Hip-Hop/Rap   2   2
Reunion       3:36   Hoodie Allen   Crew Cuts   Hip-Hop   0   3
Good Intentions       3:35   Hoodie Allen   Crew Cuts   Hip-Hop   0   5
Cake Boy       2:43   Hoodie Allen   Crew Cuts   Hip-Hop   0   4
Long Night (feat. Chance The Rapper)       3:14   Hoodie Allen   Crew Cuts   Hip-Hop   0  
Two Lips (feat. OCD Moosh and Twist)       3:45   Hoodie Allen   Crew Cuts   Hip-Hop   0   3
Casanova (feat. Skizzy Mars and G-Eazy)       3:59   Hoodie Allen   Crew Cuts   Hip-Hop   0   5
Heart 2 Heart (feat. Jared Evan)       3:29   Hoodie Allen   Crew Cuts   Hip-Hop   0   7
Wave Goodbye (feat. Shwayze)       3:41   Hoodie Allen   Crew Cuts   Hip-Hop   0   4
Where Do We Go Now       4:01   Hoodie Allen   Crew Cuts   Hip-Hop   0   1
Grind State       3:44   Jeezy   Church in These Streets   Hip-Hop/Rap   0   22
Lost Souls       3:45   Jeezy   Church in These Streets   Hip-Hop/Rap   0   10
Holy Water       4:14   Jeezy   Church in These Streets   Hip-Hop/Rap   0   12
Gold Bottles       3:12   Jeezy   Church in These Streets   Hip-Hop/Rap   0   20
Church in These Streets       3:08   Jeezy   Church in These Streets   Hip-Hop/Rap   0   17
New Clothes       3:46   Jeezy   Church in These Streets   Hip-Hop/Rap   0   15
Sweet Life (feat. Janelle Mone)       3:42   Jeezy   Church in These Streets   Hip-Hop/Rap   2   11
Scared of the Dark       3:39   Jeezy   Church in These Streets   Hip-Hop/Rap   0   9
No Other Way       3:33   Jeezy   Church in These Streets   Hip-Hop/Rap   0   12
Sister Good Game's Testimony       1:30   Jeezy   Church in These Streets   Hip-Hop/Rap   0   5
J Bo       3:28   Jeezy   Church in These Streets   Hip-Hop/Rap   0   17
I Feel Ya       3:29   Jeezy   Church in These Streets   Hip-Hop/Rap   0   14
Go Get It Interlude       1:30   Jeezy   Church in These Streets   Hip-Hop/Rap   0   7
Just Win       3:52   Jeezy   Church in These Streets   Hip-Hop/Rap   0   14
Forgive Me (feat. Monica)       3:53   Jeezy   Church in These Streets   Hip-Hop/Rap   0   14
Ultralight Beam (Ft. Chance The Rapper & Kirk Franklin)       5:21   Kanye West   The Life Of Pablo   Rap   0  
Father Stretch My Hands Pt. 1 (Ft. Kid Cudi)       2:16   Kanye West   The Life Of Pablo   Rap   0   1
Father Stretch My Hands Pt. 2 (Ft. Desiigner)       2:10   Kanye West   The Life Of Pablo   Rap   0  
Famous (Ft. Rihanna)       3:15   Kanye West   The Life Of Pablo   Rap   0  
Feedback       2:36   Kanye West   The Life Of Pablo   Rap   0   1
Low Lights       2:12   Kanye West   The Life Of Pablo   Rap   0  
Highlights (Ft. Young Thug)       3:20   Kanye West   The Life Of Pablo   Rap   0  
Freestyle 4 (Ft. Desiigner)       2:02   Kanye West   The Life Of Pablo   Rap   0   1
I Love Kanye       0:45   Kanye West   The Life Of Pablo   Rap   0  
Waves (Ft. Chris Brown)       3:01   Kanye West   The Life Of Pablo   Rap   0   1
FML (Ft. The Weeknd)       3:56   Kanye West   The Life Of Pablo   Rap   0  
Real Friends (Ft. Ty Dolla Sign)       4:11   Kanye West   The Life Of Pablo   Rap   0   1
Wolves (Ft. Frank Ocean & Caroline Shaw)       3:57   Kanye West   The Life Of Pablo   Rap   0  
Silver Surfer Intermission       0:56   Kanye West   The Life Of Pablo   Rap   0  
30 Hours (Ft. Andre 3000)       5:25   Kanye West   The Life Of Pablo   Rap   0  
No More Parties In LA (Ft. Kendrick Lamar)       6:15   Kanye West   The Life Of Pablo   Rap   0  
Facts (Charlie Heat Version)       3:20   Kanye West   The Life Of Pablo   Rap   0  
Fade (Ft. Post Malone & Ty Dolla Sign)       3:13   Kanye West   The Life Of Pablo   Rap   0  
Hol' Up       2:53   Kendrick Lamar   Section.80   Rap   0   2
A.D.H.D       3:36   Kendrick Lamar   Section.80   Rap   0   2
Tammy's Song       2:42   Kendrick Lamar   Section.80   Rap   0   1
Chapter Six       2:41   Kendrick Lamar   Section.80   Rap   0   3
Ronald Reagan Era       3:37   Kendrick Lamar   Section.80   Rap   0   7
Chapter Ten       1:16   Kendrick Lamar   Section.80   Rap   0   6
Rigamortus       2:49   Kendrick Lamar   Section.80   Rap   0   13
Blow My High       3:36   Kendrick Lamar   Section.80   Rap   0   2
HiiiPower       4:40   Kendrick Lamar   Section.80   Rap   0   5
Intro       3:03   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Soul Foo D       4:53   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Im Gone       4:42   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Gang Related       2:47   Logic   Under Pressure (Deluxe Edition)   Rap   2   12
Buried Alive       5:38   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Bounce       4:05   Logic   Under Pressure (Deluxe Edition)   Rap   0   1
Growing Pains III       4:07   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Never Enough       4:23   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Metropolis       4:55   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Nikki       3:24   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Under Pressure       9:20   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Till The End       5:14   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Driving Ms Daisy (Feat. Childish Gambino)       4:01   Logic   Under Pressure (Deluxe Edition)   Rap   0  
Now       3:33   Logic   Under Pressure (Deluxe Edition)   Rap   2   1
Alright (Feat. Big Sean)       3:38   Logic   Under Pressure (Deluxe Edition)   Rap   0  
The Genesis       1:45   Nas   Illmatic XX   Hip-Hop/Rap   0  
N.Y. State of Mind       4:53   Nas   Illmatic XX   Hip-Hop/Rap   0   1
The World Is Yours       4:50   Nas   Illmatic XX   Hip-Hop/Rap   0   1
Halftime       4:21   Nas   Illmatic XX   Hip-Hop/Rap   0  
Memory Lane (Sittin' in da Park)       4:08   Nas   Illmatic XX   Hip-Hop/Rap   0  
One Love       5:25   Nas   Illmatic XX   Hip-Hop/Rap   0  
One Time 4 Your Mind       3:18   Nas   Illmatic XX   Hip-Hop/Rap   0  
Represent       4:15   Nas   Illmatic XX   Hip-Hop/Rap   0   1
It Ain't Hard to Tell       3:22   Nas   Illmatic XX   Hip-Hop/Rap   0  
I'm a Villain       4:29   Nas   Illmatic XX   Hip-Hop/Rap   1   2
  

Explanation / Answer

NOTE: I have the original file itunes.txt so i have written the script based on that. Also i have completed 6 questions in the list you gave and left one because as per Chegg policy we are expected to complete first 4 questions.

Code:

#!/usr/bin/python


if __name__=='__main__':
   fp = open("itunes.txt", "r");
   d_artist = d_album = d_genre = {}
   for line in fp:
       lst = line.split('    ')
       #artist, album, genre = lst[1], lst[3], lst[9]
       artist, album, genre = lst[1], lst[3], lst[17]
       if artist == 'Artist':
           continue
       d_artist.setdefault(artist, list()). append(lst)
       d_album.setdefault(album,list()).append(lst)
       d_genre.setdefault(genre, list()).append(lst)

   fp.close()
   input = 100
   while input > 0:
       print "1. Name: list all songs by the specified artist"
       print "2. Album: list all songs on the specified album"
       print "3. Genre: list all songs in a specified genre"
       print "4. Add: add a song"
       print "5. Delete: delete a specified song(specify its name)"
       print "6. Popular: find the artist with the most songs in your collection"
       print "7. Longest: find the longest song in your collection and print its metadata"
       input = raw_input("Enter a number(1/2/3/4/5/6/7) ")
       input = int(input)
       if(input == 1):
           name = raw_input("Enter the artist name ")
           if name in d_artist:
               print d_artist[name]
       elif(input == 2):
           album = raw_input("Enter the album name ")
           if album in d_album:
               print d_album[album]
       elif(input == 3):
           genre = raw_input("Enter the genre name ")
           if genre in d_genre:
               print d_genre[genre]
       elif(input == 4):
           song = raw_input("Enter the song ")
           with open("itunes.txt", "a") as fp:
               fp.write(song)
       elif(input == 5):
           song = raw_input("Enter the song name ")
           f= open("itunes.txt", "r+")
           d = f.readlines()
           f.seek(0)
           for i in d:
               if not song in i:
                   f.write(i)  
           f.truncate()
           f.close()
       elif(input == 6):
           max_songs = 0
           for name in d_artist:
               if len(d_artist) > max_songs:
                   max_songs = len(d_artist)          
                   artist_name = artist
           print "Artist name is " + artist_name + " with max songs of " + str(max_songs)

          
Execution and output:
186590cb0725:Python bonkv$ python test_tunes.py
1. Name: list all songs by the specified artist
2. Album: list all songs on the specified album
3. Genre: list all songs in a specified genre
4. Add: add a song
5. Delete: delete a specified song(specify its name)
6. Popular: find the artist with the most songs in your collection
7. Longest: find the longest song in your collection and print its metadata
Enter a number(1/2/3/4/5/6/7) 1
Enter the artist name Big Sean
[['Dark Sky (Skyscrapers)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '7359388', '178', '', '', '1', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '11', '5/4/16, 3:52 PM', '9', '9/27/16, 1:39 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:01 Dark Sky (Skyscrapers).mp3 '], ['Blessings (feat. Drake)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10306003', '252', '', '', '2', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '6', '5/12/16, 10:12 PM', '12', '8/14/16, 12:06 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:02 Blessings (feat. Drake).mp3 '], ['All Your Fault (feat. Kanye West)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '9199486', '224', '', '', '3', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '13', '5/19/16, 2:53 PM', '13', '5/7/16, 5:27 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:03 All Your Fault (feat. Kanye West).mp3 '], ['Win Some, Lose Some', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '12404146', '304', '', '', '7', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '10/21/15, 8:10 PM', '8', '8/13/16, 12:16 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:07 Win Some, Lose Some.mp3 '], ['Stay Down', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10245357', '250', '', '', '8', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '12', '5/12/16, 9:12 PM', '8', '4/30/16, 6:51 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:08 Stay Down.mp3 '], ['I Know (feat. Jhené Aiko)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '13022745', '320', '', '', '9', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '5/9/16, 3:59 PM', '18', '1/25/17, 2:07 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:09 I Know (feat. Jhené Aiko).mp3 '], ['Deep (feat. Lil Wayne)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '11262082', '276', '', '', '10', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '4', '11/8/15, 10:22 PM', '5', '3/27/16, 11:48 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:10 Deep (feat. Lil Wayne).mp3 '], ['One Man Can Change The World (feat. Kanye West & John Legend)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10409562', '254', '', '', '11', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '9', '8/15/16, 2:00 PM', '10', '5/15/16, 10:33 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:11 One Man Can Change The World (feat. Kanye West & John Legend).mp3 '], ['Outro', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '9163875', '223', '', '', '12', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '6', '3/29/16, 1:04 AM', '7', '4/23/16, 6:57 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:12 Outro.mp3 '], ['Deserve It (feat. PARTYNEXTDOOR)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10672789', '261', '', '', '13', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '8', '5/21/16, 1:35 PM', '10', '9/16/16, 7:43 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:13 Deserve It (feat. PARTYNEXTDOOR).mp3 '], ['Research (feat. Ariana Grande)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '9435624', '230', '', '', '14', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '11', '8/19/16, 12:06 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:14 Research (feat. Ariana Grande).mp3 '], ['Platinum and Wood', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '6751242', '163', '', '', '15', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '8', '8/10/16, 3:34 AM', '5', '5/21/16, 5:31 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:15 Platinum and Wood.mp3 ']]
1. Name: list all songs by the specified artist
2. Album: list all songs on the specified album
3. Genre: list all songs in a specified genre
4. Add: add a song
5. Delete: delete a specified song(specify its name)
6. Popular: find the artist with the most songs in your collection
7. Longest: find the longest song in your collection and print its metadata
Enter a number(1/2/3/4/5/6/7) 2
Enter the album name Dark Sky Paradise
[['Dark Sky (Skyscrapers)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '7359388', '178', '', '', '1', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '11', '5/4/16, 3:52 PM', '9', '9/27/16, 1:39 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:01 Dark Sky (Skyscrapers).mp3 '], ['Blessings (feat. Drake)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10306003', '252', '', '', '2', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '6', '5/12/16, 10:12 PM', '12', '8/14/16, 12:06 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:02 Blessings (feat. Drake).mp3 '], ['All Your Fault (feat. Kanye West)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '9199486', '224', '', '', '3', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '13', '5/19/16, 2:53 PM', '13', '5/7/16, 5:27 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:03 All Your Fault (feat. Kanye West).mp3 '], ['Win Some, Lose Some', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '12404146', '304', '', '', '7', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '10/21/15, 8:10 PM', '8', '8/13/16, 12:16 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:07 Win Some, Lose Some.mp3 '], ['Stay Down', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10245357', '250', '', '', '8', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '12', '5/12/16, 9:12 PM', '8', '4/30/16, 6:51 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:08 Stay Down.mp3 '], ['I Know (feat. Jhené Aiko)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '13022745', '320', '', '', '9', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '5/9/16, 3:59 PM', '18', '1/25/17, 2:07 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:09 I Know (feat. Jhené Aiko).mp3 '], ['Deep (feat. Lil Wayne)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '11262082', '276', '', '', '10', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '4', '11/8/15, 10:22 PM', '5', '3/27/16, 11:48 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:10 Deep (feat. Lil Wayne).mp3 '], ['One Man Can Change The World (feat. Kanye West & John Legend)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10409562', '254', '', '', '11', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '9', '8/15/16, 2:00 PM', '10', '5/15/16, 10:33 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:11 One Man Can Change The World (feat. Kanye West & John Legend).mp3 '], ['Outro', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '9163875', '223', '', '', '12', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '6', '3/29/16, 1:04 AM', '7', '4/23/16, 6:57 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:12 Outro.mp3 '], ['Deserve It (feat. PARTYNEXTDOOR)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '10672789', '261', '', '', '13', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '8', '5/21/16, 1:35 PM', '10', '9/16/16, 7:43 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:13 Deserve It (feat. PARTYNEXTDOOR).mp3 '], ['Research (feat. Ariana Grande)', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '9435624', '230', '', '', '14', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '11', '8/19/16, 12:06 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:14 Research (feat. Ariana Grande).mp3 '], ['Platinum and Wood', 'Big Sean', '', 'Dark Sky Paradise', '', '', '', '', '', 'Rap', '6751242', '163', '', '', '15', '15', '2015', '2/18/15, 9:29 PM', '8/4/15, 4:42 PM', '320', '44100', '', 'MPEG audio file', '', '', '8', '8/10/16, 3:34 AM', '5', '5/21/16, 5:31 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Big Sean:Dark Sky Paradise:15 Platinum and Wood.mp3 ']]
1. Name: list all songs by the specified artist
2. Album: list all songs on the specified album
3. Genre: list all songs in a specified genre
4. Add: add a song
5. Delete: delete a specified song(specify its name)
6. Popular: find the artist with the most songs in your collection
7. Longest: find the longest song in your collection and print its metadata
Enter a number(1/2/3/4/5/6/7) 6
Artist name is Drake with max songs of 9

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote