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

Jason Forbes
Jason Forbes
627 Points

Create a list variable that has 3 different items.

I put: list_1 = [1,2,3] list_2 = [0'test',True]

Error says make your list have different items? Whats wrong with this?

thansk

lists.py
list_1 = [1,2,3]
list_2 = [0,'test',True]

2 Answers

Jason Forbes
Jason Forbes
627 Points

Strange, I changed the 1 to 8 and it still didnt work. Instead of True, i used False and now its ok. Thanks

akak
akak
29,445 Points

In python true = 1 and false = 0. I guess the challenge see the True in your list and takes it as a one which is the same as in your first list.