Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Introducing Lists Build an Application Multidimensional Musical Groups

Alan Stride
Alan Stride
1,660 Points

Don't understand the question in 'groups.py' challenge task 1/2

Having read the question for this task several times, I am afraid I do not understand what is being asked. Are we supposed to identify who is a member of a band from the list 'musical_groups', and then print these names out separately? If someone could break it down in its simplest form I'd be grateful!

Feedback - it's such a shame there is not a hint in this task as I am forced to ask a question. I remember previous tasks having hints which were very helpful.

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"],
]
# Your code here
members = [
for group in musical_groups:
    print(", ".join(

2 Answers

Hi Alan,

Unless I’m misunderstanding what you mean with the term identify, you are not meant to decide who’s a member of the band. The question tells you the identity of the band members. Your job is to print each member as a string, separated by a comma.

# Output: ‘Run’, ‘DMC’, ‘Jam Master Jay’

The output would look like the sample above, except it would include all bands, and each band would be printed on a different line.

Here a hint on how Treehouse wants you to solve this: nested for loops

Hope that helps! Good luck.

Alan Stride
Alan Stride
1,660 Points

I knew I was just reading the question incorrectly, although I would say a prerequisite knowledge of who the names are in the list is required. I thought that some of the names were bands and some were members, all in a mix, but one quick search on Google made me realised they are all members! Anyway, I got the solution thanks to your help.