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!
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
How do you only print out the trios for this challenge?
I find it confusing
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 for group in musical_groups: print(", ".join(group))
for group in musical_groups: if len(group) == 3: print(group)
what am i doing wrong?
in this gesture? i tried this and another. Also thank you so much for being attentive to answering!
again thank you so much for your fast replies and Im so sorry for some reason i cant still figure it out, i tried this originally but it kept giving me this error code and so i thought indenting again or spaces would fix it but it shows same error but the names jump around the error code given to me
AssertionError: 'John Lennon, Paul McCartney, Ringo Starr, George Harrison' unexpectedly found in 'Ad Rock, MCA, Mike D.\nJohn Lennon, Paul McCartney, Ringo Starr, George Harrison\nSalt, Peppa, Spinderella\nRivers Cuomo, Patrick Wilson, Brian Bell, Scott Shriner\nChuck D., Flavor Flav, Professor Griff, Khari Winn, DJ Lord\nAxl Rose, Slash, Duff McKagan, Steven Adler\nRun, DMC, Jam Master Jay\nAd Rock, MCA, Mike D.\nSalt, Peppa, Spinderella\nRun, DMC, Jam Master Jay' : Uh oh, I found a non-trio!