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: 3830743 • 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.

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

Name   Artist   Composer   Album   Grouping   Work   Movement Number   Movement Count   Movement Name   Genre   Size   Time   Disc Number   Disc Count   Track Number   Track Count   Year   Date Modified   Date Added   Bit Rate   Sample Rate   Volume Adjustment   Kind   Equalizer   Comments   Plays   Last Played   Skips   Last Skipped   My Rating   Location
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
ULT   Denzel Curry       Imperial                       Rap   10135758   247           1   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           19   3/14/17, 10:56 PM   2   9/18/16, 1:02 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:01 ULT.mp3
Gook   Denzel Curry       Imperial                       Rap   6918518   166           2   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           23   1/25/17, 10:17 PM   1   8/19/16, 4:08 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:02 Gook.mp3
Sick & Tired   Denzel Curry       Imperial                       Rap   9953957   242           3   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           10   9/20/16, 12:34 AM   1   8/12/16, 4:29 AM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:03 Sick & Tired.mp3
Knotty Head (Ft. Rick Ross)   Denzel Curry       Imperial                       Rap   11215160   274           4   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           12   10/18/16, 10:38 AM               Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:04 Knotty Head (Ft. Rick Ross).mp3
Narcotics5   Denzel Curry       Imperial                       Rap   8724108   211           5   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           3   8/28/16, 5:46 PM   5   12/21/16, 1:44 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:05 Narcotics5.mp3
Story - No Title   Denzel Curry       Imperial                       Rap   7009435   168           6   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           15   1/25/17, 10:13 PM   2   9/10/16, 12:13 AM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:06 Story - No Title.mp3
Pure Enough   Denzel Curry       Imperial                       Rap   9402248   228           7   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           3   9/20/16, 12:31 AM   5   1/25/17, 9:48 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:07 Pure Enough.mp3
This Life ft. Ronny J   Denzel Curry       Imperial                       Rap   8542307   207           8   10   2016   3/9/16, 1:35 PM   8/1/16, 7:39 PM   320   44100       MPEG audio file           11   1/25/17, 9:57 PM   4   9/13/16, 12:15 AM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Denzel Curry:Imperial:08 This Life ft. Ronny J.mp3
Over My Dead Body   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   11214815   272           1   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file                               Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):01 Over My Dead Body.mp3
Shot for Me   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   9309960   224           2   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file                   2   1/2/17, 1:13 AM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):02 Shot for Me.mp3
Headlines   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   9757302   235           3   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file           3   9/22/16, 2:30 PM   1   11/26/16, 7:58 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):03 Headlines.mp3
Crew Love (feat. The Weeknd)   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   8672589   208           4   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file           1   8/12/16, 3:06 AM   1   8/12/16, 3:01 AM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):04 Crew Love (feat. The Weeknd).mp3
Take Care (feat. Rihanna)   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   11415443   277           5   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file                   4   11/20/16, 2:39 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):05 Take Care (feat. Rihanna).mp3
Marvins Room   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   14208442   347           6   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file                   1   9/13/16, 4:40 PM       Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):06 Marvins Room.mp3
Buried Alive Interlude (feat. Kendrick Lamar)   Drake       Take Care (Deluxe Version)                       Hip-Hop/Rap   6361291   151           7   20   2011   9/5/15, 12:27 PM   12/3/15, 7:15 PM   320   44100       MPEG audio file                   3   10/25/16, 12:28 AM       Macintosh

Explanation / Answer

NOTE: Due to lack of time i was not able to complete the last question(vii) in your assignment. Sorry for that. But all other cases are completed.

The code runs fine for all other cases and '-1' is the number we have to give to terminate from loop.

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]

       print song_size

       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:Chegg 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 Drake
[['Over My Dead Body', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '11214815', '272', '', '', '1', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '', '', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):01 Over My Dead Body.mp3 '], ['Shot for Me', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '9309960', '224', '', '', '2', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '2', '1/2/17, 1:13 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):02 Shot for Me.mp3 '], ['Headlines', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '9757302', '235', '', '', '3', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '9/22/16, 2:30 PM', '1', '11/26/16, 7:58 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):03 Headlines.mp3 '], ['Crew Love (feat. The Weeknd)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '8672589', '208', '', '', '4', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '1', '8/12/16, 3:06 AM', '1', '8/12/16, 3:01 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):04 Crew Love (feat. The Weeknd).mp3 '], ['Take Care (feat. Rihanna)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '11415443', '277', '', '', '5', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '4', '11/20/16, 2:39 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):05 Take Care (feat. Rihanna).mp3 '], ['Marvins Room', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '14208442', '347', '', '', '6', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '1', '9/13/16, 4:40 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):06 Marvins Room.mp3 '], ['Buried Alive Interlude (feat. Kendrick Lamar)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '6361291', '151', '', '', '7', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '3', '10/25/16, 12:28 AM', '', 'Macintosh ']]
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 Take Care (Deluxe Version)
[['Over My Dead Body', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '11214815', '272', '', '', '1', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '', '', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):01 Over My Dead Body.mp3 '], ['Shot for Me', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '9309960', '224', '', '', '2', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '2', '1/2/17, 1:13 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):02 Shot for Me.mp3 '], ['Headlines', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '9757302', '235', '', '', '3', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '9/22/16, 2:30 PM', '1', '11/26/16, 7:58 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):03 Headlines.mp3 '], ['Crew Love (feat. The Weeknd)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '8672589', '208', '', '', '4', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '1', '8/12/16, 3:06 AM', '1', '8/12/16, 3:01 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):04 Crew Love (feat. The Weeknd).mp3 '], ['Take Care (feat. Rihanna)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '11415443', '277', '', '', '5', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '4', '11/20/16, 2:39 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):05 Take Care (feat. Rihanna).mp3 '], ['Marvins Room', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '14208442', '347', '', '', '6', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '1', '9/13/16, 4:40 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):06 Marvins Room.mp3 '], ['Buried Alive Interlude (feat. Kendrick Lamar)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '6361291', '151', '', '', '7', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '3', '10/25/16, 12:28 AM', '', 'Macintosh ']]
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) 3
Enter the genre name 9/5/15, 12:27 PM
[['Over My Dead Body', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '11214815', '272', '', '', '1', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '', '', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):01 Over My Dead Body.mp3 '], ['Shot for Me', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '9309960', '224', '', '', '2', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '2', '1/2/17, 1:13 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):02 Shot for Me.mp3 '], ['Headlines', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '9757302', '235', '', '', '3', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '3', '9/22/16, 2:30 PM', '1', '11/26/16, 7:58 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):03 Headlines.mp3 '], ['Crew Love (feat. The Weeknd)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '8672589', '208', '', '', '4', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '1', '8/12/16, 3:06 AM', '1', '8/12/16, 3:01 AM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):04 Crew Love (feat. The Weeknd).mp3 '], ['Take Care (feat. Rihanna)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '11415443', '277', '', '', '5', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '4', '11/20/16, 2:39 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):05 Take Care (feat. Rihanna).mp3 '], ['Marvins Room', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '14208442', '347', '', '', '6', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '1', '9/13/16, 4:40 PM', '', 'Macintosh HD:Users:NathanielMullins:Music:iTunes:iTunes Media:Music:Drake:Take Care (Deluxe Version):06 Marvins Room.mp3 '], ['Buried Alive Interlude (feat. Kendrick Lamar)', 'Drake', '', 'Take Care (Deluxe Version)', '', '', '', '', '', 'Hip-Hop/Rap', '6361291', '151', '', '', '7', '20', '2011', '9/5/15, 12:27 PM', '12/3/15, 7:15 PM', '320', '44100', '', 'MPEG audio file', '', '', '', '', '3', '10/25/16, 12:28 AM', '', 'Macintosh ']]
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

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