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 trialEmilio Andere
495 PointsTHIS IS N0T WRONG!!!!!!!!!1!
I hate treehousee
my_list = [ 3 , 9 , 7, 'Santi', 'emilio']
member = ['Kalo', 'Diego']
my_list + member
1 Answer
Valeshan Naidoo
27,008 PointsOk, so I think you may have misread the question a little, it just asks you to create a list and input all of what it said in that same list line i.e.
my_list = [ 3 , 9 , 7, 'Santi', 'emilio', [1, 2]]
You can certainly do something like you're attempting, but you use the append method like this:
my_list = [ 3 , 9 , 7, 'Santi', 'emilio']
member = ['Kalo', 'Diego']
my_list.append(member)
That will give you the same output as the first answer would. Hope this helps.
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsEmilio Andere
You may wish to edit your title for this post, as:
Thank you in advance for your cooperation.
Jason ~Treehouse Community Moderator