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 Python Collections (2016, retired 2019) Lists Creating lists

Emilio Andere
Emilio Andere
495 Points

THIS IS N0T WRONG!!!!!!!!!1!

I hate treehousee

lists.py
my_list = [ 3 , 9 , 7, 'Santi', 'emilio']
member = ['Kalo', 'Diego']
my_list + member
Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Emilio Andere

You may wish to edit your title for this post, as:

  1. Your code was, in fact, incorrect.
  2. All caps comes across as being very aggressive, demanding, and rude, which is not the mood or atmosphere we maintain here in the Treehouse Community. The Treehouse Community is a welcoming place for students to feel comfortable to both ask questions and provide answer for others. It is a "Community"

Thank you in advance for your cooperation.

Jason ~Treehouse Community Moderator

1 Answer

Valeshan Naidoo
Valeshan Naidoo
27,008 Points

Ok, 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.