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

Arthur Berg
Arthur Berg
11,350 Points


When I try to create my variable it says NameError. I don't understand why. I am simply just creating a variable containing a list...

varl = [1, 2, 3 , 4, 5, 't']

2 Answers

Haider Ali
.a{fill-rule:evenodd;}techdegree seal-36
Haider Ali
Python Development Techdegree Graduate 24,728 Points

Hi Arthur, your variable name is spelled incorrectly as the challenge asks you to create a variable called var1 not varl:

var1 = [1, 2, 3 , 4, 5, 't']

However, I understand why you made your mistake as the 2 characters do look very similar :)

Kourosh Raeen
Kourosh Raeen
23,733 Points

There's a spelling error. It should be var1 not varl.