zhiwehu/Python-programming-exercises — pull request #1 by ni8mr (2014-10-09 10:10:15+00:00)
Title: Generating a tuple containg only even numbers from another tuple (which i marked as question 43)

If i loop according to your method, (for i in tuple_name:) the for loop go out of the range of the tuple index.

So i do in this way,

for i in range(0,len(tuple_name))

and it works as it keeps the loop within the range of the index of the tuple.