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, 22.06.2019 02:30
The can be used to paste text in any order
Answers: 1
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
The following program uses nested dictionaries to store a small music library. Extend the program su...
Mathematics, 11.06.2021 23:20
Mathematics, 11.06.2021 23:20
Mathematics, 11.06.2021 23:20
Mathematics, 11.06.2021 23:20
Social Studies, 11.06.2021 23:20
Mathematics, 11.06.2021 23:20
Computers and Technology, 11.06.2021 23:20
Law, 11.06.2021 23:20
Mathematics, 11.06.2021 23:20