Create a 1-D array
NumPy is the fundamental package for scientific computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a vast collection of mathematical functions to operate on these arrays efficiently. NumPy serves as the foundation upon which many of Python‘s most popular data science and scientific computing packages are built, including SciPy,…