[ ][ ]]]arr [ is arrayin [ ]arr [ out[ ]array([[ ][ ]]both scalar values and arrays can be assigned to arr [ ]in [ ]old_values arr [ copy(in [ ]arr [ in [ ]arr out[ ]array([[[ ][ ]][ ][ ]]]in [ ]arr [ old_values in [ ]arr out[ ]array([[ ] ]][ ][ ]]]similarlyarr [ gives you all of the values whose indices start with ( )forming -dimensional arrayin [ ]arr [ out[ ]array([ ]note that in all of these cases where subsections of the array have been selectedthe returned arrays are views indexing with slices like one-dimensional objects such as python listsndarrays can be sliced using the familiar syntaxin [ ]arr[ : out[ ]array( ]higher dimensional objects give you more options as you can slice one or more axes and also mix integers consider the array abovearr slicing this array is bit differentin [ ]arr out[ ]in [ ]arr [: out[ ] numpy basicsarrays and vectorized computation www it-ebooks info