Max Value in List Array
<p>The following code creates a list with entered values:</p>

<pre><code>def locateLargest():

    matrix = []
    numberOfRows = int(input("Enter the number of rows: "))
    numberOfColumns = 2

    for row in range(0, numberOfRows):
        matrix.append([])
        for column in range(0, numberOfColumns):
            value = int(input("Enter a value: "))
            matrix[row].append(value)


    max_value = None
    for value in matrix:
        if not max_value:
            max_value = value
        elif value &gt; max_value:
            max_value = value
    print(max_value)

locateLargest()
</code></pre>

<p>The issue I am running into is that it is asking for each value individual in the row, and is returning the maximum pair of values in the row, not the maximum value's index. </p>

<p>The sample run of what I should be getting is:</p>

<pre><code>Enter the number of rows in the list: 3
Enter a row: 23.5 35 2 10
Enter a row: 4.5 3 45 3.5
Enter a row: 35 44 5.5 11.6
The location of the largest element is at (1,2)
</code></pre>

<p>Any ideas?</p>

<p>My current output is:</p>

<pre><code>Enter the number of rows: 2
Enter the number of columns: 6
Enter a value: 2
Enter a value: 2
Enter a value: 2
Enter a value: 2
Enter a value: 2
Enter a value: 2
Enter a value: 7
Enter a value: 6
Enter a value: 4
Enter a value: 3
Enter a value: 6
Enter a value: 2
[7, 6, 4, 3, 6, 2]
</code></pre>