Iterating through tuples in python
<p>I'm having some trouble iterating through a list comprised of tuples. </p>

<p>It seems that the problem is with the indices in the <code>for</code> loop.</p>

<p>Whenever I run the program the only outcome is:</p>

<pre><code>('joao', 300, 20)
</code></pre>

<p>Can anyone please explain to me with this is happening?</p>

<pre><code>tuplo = [('joao', 300, 20), ('ana', 80, 15), ('patricia', 17, 90)]
def coordenadas(tuplo, name):
    for index in range(len(tuplo)):        
        if tuplo[index][0] == name:
            print(tuplo[index][0:])
        else:
            return None

coordenadas(tuplo,'joao')
coordenadas(tuplo,'ana')
coordenadas(tuplo,'patricia')
</code></pre>