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 trialFaraz Jahangiri
1,028 PointsI honestly cannot get my head around this problem. could someone please help!
.
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
2 Answers
Rick Gleitz
47,876 PointsLet's break the task's wording apart:
Can you loop through each group leads to: for group in musical_groups:
and output the members leads to: print(group)
joined together with a ", " comma space as a separator (means you need to do a join of ", " to the group) and so modifies print(group) to be: print(", ".join(group))
Hope this helps!
Rick Gleitz
47,876 PointsThanks. It kind of just came to me to break down the challenge like that. Kind of the way we should code - break it all down into simpler stuff. Glad I could be of help.
Faraz Jahangiri
1,028 PointsFaraz Jahangiri
1,028 PointsThis probably has to be the best comprehensive answer I've gotten. Thank you so much.