How to fetch array within array python : <pre><code>array = [['eric', '12', '12'], ['ted', '12', '102']]

n = input("name\n&gt;&gt;")

if n in array:
    print(array)
else:
    print("error")
</code></pre>

<p>When I input 'eric' as n I want to program to print array[0] and if I enter 'ted' I want to program to output to contents of array[1]. How do I do this?</p>
