Computers and Technology, 07.06.2021 02:10 sofiaisabelaguozdpez
The following program uses nested dictionaries to store a small music library. Extend the program such that a user can add artists, albums, and songs to the library. First, add a command that adds an artist name to the music dictionary. Then add commands for adding albums and songs. Take care to check that an artist exists in the dictionary before adding an album, and that an album exists before adding a song.
music = {
'Pink Floyd': {
'The Dark Side of the Moon': {
'songs': [ 'Speak to Me', 'Breathe', 'On the Run', 'Money'],
'year': 1973,
'platinum': True
},
'The Wall': {
'songs': [ 'Another Brick in the Wall', 'Mother', 'Hey you'],
'year': 1979,
'platinum': True
}
},
'Justin Bieber': {
'My World':{
'songs': ['One Time', 'Bigger', 'Love Me'],
'year': 2010,
'platinum': True
}
}
}
#complete/edit code given below:
# Get user input
# While user input != 'exit'
# ...
Answers: 1
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
The following program uses nested dictionaries to store a small music library. Extend the program su...
Social Studies, 03.10.2019 10:30
Mathematics, 03.10.2019 10:30
Computers and Technology, 03.10.2019 10:30
Biology, 03.10.2019 10:30
English, 03.10.2019 10:30
Mathematics, 03.10.2019 10:30
Biology, 03.10.2019 10:30
Spanish, 03.10.2019 10:30
Mathematics, 03.10.2019 10:30
English, 03.10.2019 10:30
English, 03.10.2019 10:30