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



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 think I understand the question but I'm not able to type it correctly, Ive reviewed the Index video numerous times and can't seem to get it.

i had: Varl = 'knight'.index(t) which doesn't make sense due to not integers.

1 Answer

Stuart Wright
Stuart Wright
41,118 Points

I think the answer is simpler than what you are trying to do. Try simply:

var1 = 'knight'

This assigns a value to var1 which has a 't' at index 5, which is all the challenge is asking you to do.

Also note that the last character of var1 is the number 1, not the letter L.