Python Introducing Lists Build an Application Multidimensional Musical Groups

Kathy Kinsella
Kathy Kinsella
1,306 Points

music group

I am getting an assertion error for the music group task. what am I doing wrong?

groups.py
musical_groups = [
    ["Ad Rock", "MCA", "Mike D."],
    ["John Lennon", "Paul McCartney", "Ringo Starr", "George Harrison"],
    ["Salt", "Peppa", "Spinderella"],
    ["Rivers Cuomo", "Patrick Wilson", "Brian Bell", "Scott Shriner"],
    ["Chuck D.", "Flavor Flav", "Professor Griff", "Khari Winn", "DJ Lord"],
    ["Axl Rose", "Slash", "Duff McKagan", "Steven Adler"],
    ["Run", "DMC", "Jam Master Jay"],
]
for music in musical_groups:
    members = ", ".join(music)
    print (music)

1 Answer

Steven Parker
Steven Parker
182,024 Points

You nearly have it there! You created "members" correctly and it contains exactly what you need to print

But "music" is being printed instead of "members".