
Bernard Ruziye
1,377 Pointshow should the output of this challenge look like
i cant find what is wrong with my code
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"],
]
group = 1
for musical_group in musical_groups:
print("group {} {} ".format(group, ",".join(musical_group)))
group += 1
1 Answer

Megan Amendola
Treehouse TeacherThe challenge is asking for 'output the members joined together with a ", " comma space as a separator'. It only wants the members printed with commas and space between their names like this: Ad Rock, MCA, Mike D.
for group in musical_groups:
print(', '.join(group))
Bernard Ruziye
1,377 PointsBernard Ruziye
1,377 Pointsthank you Megan