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 (Retired) Lists Redux Combining Lists

Combine list_1 and list_2 into a new variable named list_3. You can combine lists the same way you combine strings

not quite sure what to do exactly

lists.py
list_1 = [1, 2, 3]
list_2 = [4, 5, 6]
list_3 = list_1 join

list_3=list_1+list_2

2 Answers

Hi Adrianne,

Without giving you the exact answer, for the list_3 line you would just need to add the 2 previous variables together as you would with strings.

Shout if you're still not sure :)

-Rich

list_3= [1,2,3,4,5,6]