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 trialAlex Durham
Courses Plus Student 456 Pointsindex
what is the index value of the 't'?
varl ="Alexdt"
2 Answers
Cole Wilson
7,413 PointsThe index of 't' is 5.
You can see this by running this code:
var1 = "Alexdt"
print(var1.index('t'))
Stuart Wright
41,120 PointsYour code is correct, t is at index 5.
It is failing the challenge as the variable name has to be var1 (number one on the end), rather than varl (letter L).
Alex Durham
Courses Plus Student 456 PointsThank you!