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

abdul hakkim
abdul hakkim
2,745 Points

python collection first question

where i am making mistake can any one tell me

lists.py
my_list = ['1','9','8','apple','orange']
my_list += ["pp","oo"]

1 Answer

Hi abdul,

First, the code challenge is asking us to "Put 3 numbers and 2 strings into it". In your solution everything is a string. Second, there are scenarios where we are required to Add lists, as you have done, but this will not solve our problem because the last part of the question is asking us to add another member, a list. In the solution that you have given, the last member will be 'oo'. Try appending this new list to the variable named my_list.