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 trialAdrianne Browning
2,602 PointsCombine 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
list_1 = [1, 2, 3]
list_2 = [4, 5, 6]
list_3 = list_1 join
2 Answers
Rich Bagley
25,869 PointsHi 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
MUZ140638 Racheal Bandirai
2,742 Pointslist_3= [1,2,3,4,5,6]
Cristi Sturgill
Courses Plus Student 29,577 PointsCristi Sturgill
Courses Plus Student 29,577 Pointslist_3=list_1+list_2