The first value = ['a', 'b', 'c', 'd', 'e'] not tuple , this is list . In Python, to iterate a for loop, you can simply do:
for v in value: print v
(I think you have a C-background where we need an index to access the elements and iterate over the arrays).
if you want to index, also use the `enumerate (any_sequence) function, which returns pairs (index, value) in the list,
>>> list(enumerate(value)) [(0, 'a'), (1, 'b'), (2, 'c'), (3, 'd'), (4, 'e')]
so you can:
for i, v in enumerate(value): print i, v
Of course, if you want to explicitly use the index, follow these steps:
index = 0 for v in value: print index, v index += 1
but this is not a Pythonic path, therefore not preferable in genral.