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 Basics (2015) Python Data Types Specific Index value

In Need of help

Can someone tell me why this is not working?

index.py
varl = [0, 1, 2, 3, 4, t] 

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

There are two tiny mistakes in your code. First, it wants the variable to be named var1 (variable one). You have named yours varl (variable L). Also the t needs to be set as a string, otherwise it believes it to be a reference to another variable. See my code:

var1 = [0,1,2,3,4,"t"]

Thank you. That worked.