title: How to define a 2D array of (x,y) coordinates
body: <p>I have a 2d space of (x,y) coordinates that I want to model in python and want to know a way to define the 2d space in python where I can assign multiple values to a point (x,y). Later values at coordinates will be changed based on some coordinate dependent calculations. </p>
  
  <p>I thought about using numpy array to create the 2d array based on the size entered by the user. I started by creating a 2d n*m numpy array of zeros and later parts of the code calculations are done on points. But in this way each point (x,y) only has one value. </p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  
  x_coor=135
  
  y_coor=120
  
  grid=np.zeros((x_coor,y_coor)
  </code></pre>
  
  <p>Is there a way to make it grid[x,y]=(value1,value2), and is there a better way to define the grid other than a numpy array?</p>