Consumer report would help determine the best technology to buy.
Answer:
def element_loc():
is_end = 'n'
dimen2 = []
while is_end == 'n':
par1 = input("Enter rows and columns: ").split(",")
part = [int(i) for i in par1]
dimen2. append(part)
is_end = input("Do you want to add more rows? y/n: ")
mini = list()
for i in dimen2:
mini. append(min(i))
result = min(mini)
row_index = mini. index(result)
col_index = dimen2[row_index]. index(result)
print("Row: ", row_index, "Col_index: ", col_index)
element_loc()
Explanation:
The python program solution above prompts users for the two-dimensional array and then the rows of the array are compared with the minimum value stored in another list or array. The row index and the column index are gotten from the mini and dimen2 arrays respectively and are displayed as the position of the minimum value in the two-dimensional array.
The answer is the <span>ArrayList method</span>
Answer:
The output of the given question is the option "B".
Explanation:
In the given code the output is the option B which is 1 6 3. Because in the function calc() we pass the two parameters and in this function we define an integer variable c that calculate the value of the variable a and b. in outside the function we declare three variable x,y and z in this we assign value that is 1,2,3 and call the function and print the value. The variable z is no pass in the function so the value of this variable is 3, x variable value is 1 and y variable value is 6. So the output of the code is 1 6 3.