---
# System prepended metadata

title: search_2d

---

search_2d
======

```python

# Given a 2d array, A, of integers which are sorted such that:
# A[i, j] < A[i + 1, j] and A[i, j] < A[i, j + 1]
# e.g. ascending down columns and along rows
# develop a function, search_2d, to return the position of a query number
# For example, in python syntax

A = [[1,  4,  7,  11],    
     [3,  6,  9,  16],
     [10, 13, 14, 17]]

assert search_2d(A, 9) == (1, 2)
assert search_2d(A, 8) is None

----- Your solution below ----
```python


```