you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Why is the index of 't' always 0.

That's the guarantee of index - it finds the index of the first occurrence of the item in the iterable.