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

Creating list

I don't know what this sentence below mean.

For the last member, though, add another list with 2 items in it.

lists.py
my_list = [1,2,3,'Ryota','Kosuke']

2 Answers

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Ryota,

Python lists can hold just about anything... including other lists!

Here's an example:

list_of_lists.py
my_list = [["first", "list"], ["second", "one"], [4, 5, False], 8, "pythonista", 3948]

So for this challenge, the last item in your list should be a list, just like the first three items of my list above.

Make sense?

Cheers :beers:

-Greg

I see, now I understand. Thank you