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 trialFELIX OPOKU
656 PointsI'm confused here, can someone help me?
Can some tell me how i can start?
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
Ad Rock = [
2 Answers
Steven Parker
231,275 PointsStart by writing a loop that will go through the list, one group at a time.
Inside the loop, print out the group using the "join" method to format them according to the instructions.
Itsa Snake
3,852 PointsI'm really confused what i'm supposed to be doing here. What is the 1st dimension? There seems to be a lot more rows that is implied in this question.
The join lists was probably the most confusing part of the course so far for me.
Is this even a start?
group_number = 0 for member in musical_groups: #join something? group_number += 1
Steven Parker
231,275 PointsSteven Parker
231,275 PointsThat's a start, but you won't need to keep track of group numbers. "member" is perhaps an odd name for the loop variable, since it will represent the group lists (one at a time).
And when lists are nested inside each other, the levels are sometimes referred to as "dimensions". The outermost list would be the "1st dimension", in this case the list of groups. What it contains is lists of members.