subject

PYTHON

locate the largest element.. write the following method that returns the location of the largest element in a two-dimensional array.

def locateLargest(a):

the return value is a one dimensional list that contains two elements. these two elements indicated 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.

PYTHON

Example: 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)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
PYTHON

locate the largest element.. write the following method that returns the location...
Questions
question
Biology, 07.05.2021 18:10
question
Mathematics, 07.05.2021 18:10
question
Mathematics, 07.05.2021 18:10