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

George Lugo
seal-mask
.a{fill-rule:evenodd;}techdegree
George Lugo
Python Web Development Techdegree Student 922 Points

what am i doing wrong here

def my_list[4,2,8,"John","george"] def my_list2["Johnson", "Karam"]

lists.py
def my_list[4,2,8,"John","george"]
def my_list2["Johnson", "Karam"]

1 Answer

Florian Tรถnjes
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Florian Tรถnjes
Full Stack JavaScript Techdegree Graduate 50,856 Points

Hi George,

the challenge wants you to put 6 items into the first list. The last item should be another list. So you have to put a list into the list as the last item.

Kind Regards, Florian

I will also note that the challenge wants you to make a variable named my_list.