Indexing

Report a typo

There is a two-dimensional array.

a = np.array([[1, 3, 4],
              [45, 66, 76],
              [0, 9, 4],
              [12, 14, 90],
              [39, 71, 83],
              [27, 20, 5]])

Extract and print an element using indexing. The index of the row and the index of the value are in the input.

Sample Input 1:

2
1

Sample Output 1:

9
Write a program in Python 3
import numpy as np


a = np.array([[1, 3, 4],
[45, 66, 76],
[0, 9, 4],
[12, 14, 90],
[39, 71, 83],
[27, 20, 5]])
# your code here
___

Create a free account to access the full topic