# Challenge - Gold Miner¶

After binge watching the discovery channel, you ditch your job as a trial lawyer to become a gold miner. You decide to prospect five locations underneath a 7x7 grid of land. How much gold do you uncover at each location?

In [1]:

```
%pip install numpy
import numpy as np
np.random.seed(5555)
gold = np.random.randint(low=0, high=10, size=(7,7))
print(gold)
locs = np.array([
[0,4],
[2,2],
[2,3],
[5,1],
[6,3]
])
```

In [7]:

```
print(locs[:, 0])
print(locs[:, 1])
gold[locs[:, 0], locs[:, 1]]
```

[0 2 2 5 6] [4 2 3 1 3]

Out[7]:

array([2, 6, 2, 8, 2])