-->

Shape Coloring Game


-->

Shape Coloring Game. In python shape [0] returns the dimension but in this code it is returning total number of set. And you can get the (number of) dimensions of your array using yourarray.ndim.

Colour by 2D Shape Worksheets Top Teacher
Colour by 2D Shape Worksheets Top Teacher from topteacher.com.au

And you can get the (number of) dimensions of your array using yourarray.ndim. So in your case, since the index value of y.shape[0] is 0, your are working along the first. X.shape[0] gives the first element in that tuple, which is 10.

-->

Colour by 2D Shape Worksheets Top Teacher

Please can someone tell me work of shape [0] and shape [1]? Please can someone tell me work of shape [0] and shape [1]? In python shape [0] returns the dimension but in this code it is returning total number of set. (r,) and (r,1) just add (useless) parentheses but still express respectively 1d and 2d array.

-->