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 Combining Lists

Create a list named best that has three items in it. The items can be anything you want.

I've looked back at the video and it wasn't very clear

lists.py
best_3 = ["1 ,2 ,3"]

4 Answers

best = [1 ,2 ,3]

Travis Bailey
Travis Bailey
13,675 Points

You named your variable best_3 instead of best ;)

Trust me, I've misnamed functions and variables tons of times in these challenges only to realize 30 minutes later trying to find the issue that I misnamed something...ah the world of programming.

aishah storey
aishah storey
2,472 Points

best = ['1', '2', '3']

Travis Bailey
Travis Bailey
13,675 Points

It's your "" marks. Remember each item in the list is it's own string. The way you have it now it sees it as just one item.

long_string_list = ["I'm just a super, long, cool string. Just one item tho"]
multiple_string_list = ["I'm", "actually", "several", "items"]

It still didn't work. It keeps giving me "Bummer! You didn't create the best variable?"