17 lines
421 B
Python
17 lines
421 B
Python
def make_album(artist, title):
|
|
"""Build a dictionary containing information about an album."""
|
|
album_dict = {
|
|
'artist': artist.title(),
|
|
'title': title.title(),
|
|
}
|
|
return album_dict
|
|
|
|
album = make_album('metallica', 'ride the lightning')
|
|
print(album)
|
|
|
|
album = make_album('beethoven', 'ninth symphony')
|
|
print(album)
|
|
|
|
album = make_album('willie nelson', 'red-headed stranger')
|
|
print(album)
|