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

creating list?

creating list?

lists.py
[1,5,true,"apple"   [1,2,3,4]   [1,5,"banana"     my_list {1,3,5,false,"pear"]    [0,1,2, "treehouse" "apple"]

3 Answers

You are putting too much stuff into the list!

The challenge just wants three numbers, two strings, and another list (inside of the one you are creating) that has two items in it.

my_list = [1, 2, 3, 'a', 'b', [1, 2]]

Also, if this is your first time programming, you should probably check out Python Basics before starting this course Python Collections.

The first three courses you should learn are (in order!):

  1. Python Basics
  2. Python Collections
  3. Object-Oriented Python

(Handy tip: You can also follow the Python Track)

~Alex

I'm just start today python I don't have any clue creat list sting?

The I'm start with joy Kesten then start from scratch I did 495 point last nite one again thank youuu