[ ]slicing arrays can be sliced similarly to python lists if an array has several dimensionsa slice for each dimension needs to be specified recall that python indexing starts at ' and ends at 'len(obj)- the following program illustrates various slicing operations np array range ( )reshape ( , print (aprint ( [ ]first row print ( [, ]second column print ( [ , ]element in first row and second column print ( [ : , : ]( , ndarray containing [ , print ( [ - ]elements in nd and rd rows and last column [[ [ [ ][ [ [[ ][ note that ndarrays are mutable objectsso that elements can be modified directlywithout having to create new object [ , [ , change two elements in the matrix above print ( [[ [ [ ] array operations basic mathematical operators and functions act element-wise on ndarray objects np array ([[ , ,[ , ]] np array ([[ , ,[ , ]]print ( + [ ]print (np divide ( , )[ ]same as /