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
Josh Foster
696 Pointscant figure this one out
varl = ["a", "b", "c", "d", "e", "t"] varl = [ 0 1 2 3 4 5 ]
i have tried with var1 and still wont work
https://teamtreehouse.com/library/python-basics/python-data-types/specific-index-value
3 Answers
Jennifer Nordell
Treehouse TeacherThat's really odd. Because it seems like you did. If I take your first example and change the lower case L to a one (1), it passes! Take a look:
var1 = ["a", "b", "c", "d", "e", "t"]
Give it another shot with exactly this code. Hope this helps!
Josh Foster
696 Pointsthanks it worked great could you help me with https://teamtreehouse.com/library/python-basics/python-data-types/list-cleanup
heres my code
messy = [5, 2, 8, 1, 3] del.messy(8)
thanks
Jennifer Nordell
Treehouse TeacherI'd prefer that you start a new question for that so that we can keep the Community nice and neat with questions and answers sorted into their appropriate categories and linked to the correct challenges. Thanks!
Nicolas Bassano
2,125 PointsYou can use:
var1 = 'kenneth'
or
var1 = 'tought'
or
var1 = "00000t00000"
As long as the index for "t" is 5
Remember that from left to right the index starts at 0.
For example:
var1 = 'kenneth'
^^^^^^^
0123456 #here the "t" is at index 5
If for some reason the variable looks like this:
var1 = 'kenneht'
^^^^^^^
0123456 #here the "t" is at index 6
Hope it helps.
Cheers.