Write short note on slicing.
Question :
Write short note on slicing.
Just like lists in Python, NumPy arrays can be sliced. As rrays can be multidimensional, you need to specify a slice for each dimension of the array. Slicing can be done over multiple dimensions. It cannot be used to expand the size of an array (unlike lists).