IN PYTHON: DO NOT USE ENUMERATE OR NUMPY
Write the following function that returns the location of the largest element in a two-dimensional list:
def locateLargest(a):
The return value is a one-dimensional list that contains two elements. These two elements indicate the row and column indexes of the largest element in the two-dimensional list. Write a test program that prompts the user to enter a two dimensional list and displays the location of the largest element in the list.
Sample Run:
Enter the number of rows in the list: 3
Enter a row: 20.6 40 1 4
Enter a row: 5.5 3 42 4.5
Enter a row: 46 32 4.4 12.1
The loacation of the largest element is at (0,2)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here