1. What is NumPy? Why should we use it?
Ans}NumPy is a Python library used for working with arrays. It also has
functions for working in domain of linear algebra, fourier transform,
and matrices. NumPy was created in 2005 by Travis Oliphant. It is an
open source project and you can use it freely.
1. 2}Write the steps to create 2D, and 3D array with output.
Ceating a 2D Array
1. Import NumPy: First, import the NumPy library.
2. Define Array: Use NumPy's array function to create a 2D array, specifying the
dimensions and content.
3. Access and Modify Elements: You can access and modify elements using indexing and
slicing
Creating a 3D Array
4. Import NumPy: Again, start by importing the NumPy library.
5. Define Array: Use NumPy's array function with nested lists to create a 3D array.
6. Access and Modify Elements: Similar to 2D arrays, use indexing and slicing to access
and modify elements.