i have a list in my customer.txt how to create a search function to print out the whole customer information using python
<p>Hi i have a list in my customer.txt file:</p>

<pre><code>[1, 'Amin Milani Fard', 'Columbia College', 778]
[33, 'Ali Sulemanji', 'Langara College', 4324442211]
[32, 'Ali Sulemanji', 'Langara College', 4324442211]
[325, 'Ali Sulemanji', 'Langara College', 4324442211]
[2, 'Yuvin Ng','Dougles College',77839922003]
[3, 'Ali Sulemanji', 'Langara College', 4324442211]
</code></pre>

<p>my job is to create a search function that can track the customer name.
for eg.
type in the customer name:Yuvin Ng
and it will return the whole list from Yuvin Ng's line</p>

<p>how can i do that? using python.</p>

<pre><code>def search(n):
    name=input('Customer Name:')
    x=open('customerlist.txt','r')
    i=0
    while i&lt;1000: # anyway this is out of desperation to make the function work...
        z=x.readline()
        print(z)
        i+=1
</code></pre>

<p>im stuck... pleease help a.s.a.p thx you..</p>
