Build coordinate grids for a 3 x 4 area with np.meshgrid and return xx + yy

NumPy · from Coordinate grids

np.meshgridnp.mgridnp.ogridnp.indicesnp.hypotsparse grids

Putting the kettle on…

Starting up…

Exercise 1

Build coordinate grids for a 3 x 4 area with np.meshgrid and return xx + yy.

your answer
stuck? the lesson behind it
Coordinate grids
meshgrid, mgrid, ogrid — how you compute a function of position without a loop.