在Python中使用坐标矩阵

working with matrix of coordinates in python

I'm kind of new to programming so it's quite difficult to me to do the next thing: I need to check whether the coorinate is in each matrix or not. I decided to do this with table filled with boolean values, so it should look like this: picture

but please can you help me how to code this in Python? thanks in advance