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

Gilang Ilhami
Gilang Ilhami
12,045 Points

Index

Let's practice with indexes! Make a new variable named var1 that is either a list or a string. Make sure that var1[5], the item with an index value of 5, is the letter "t".

I'm not sure what went wrong here

index.py
varl = 'abcdet'

3 Answers

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

Oh wow! You're so close. There's nothing wrong with your code. You've simply mistyped the variable name and now the challenge can't find what it's looking for. You've typed varl instead of var1. Note your version is var and a lower case L. The version they're looking for is var and a one.

Yours with varl:

varl = 'abcdet'

Edited to be var1:

var1 = 'abcdet'

Hang in there! You're doing great! :sparkles:

Omg how did you see that???!!!

Gilang Ilhami
Gilang Ilhami
12,045 Points

Oh wow i'm laughing at myself hahaha Thank you very much Jennifer :)

Your code looks fine.

Try:

  • Refreshing the page and re-entering the code.
  • If you copy-pasted the code into the challenge, remove the code and type it out instead of copy-pasting. th If this doesn't work, send an email to help@teamtreehouse.com.

EDIT: Jennifer is right. I just didn't see that lol :)

I never would of seen that.