Updated 3 years ago
Numpy
Num - Numerical, Py - Python
It is one of the most important libraries in Python for numerical computations.
It is the backbone of Machine Learning in Python.
They store data of similar datatypes only.
Numpy consists of two parts:
ndarray: n-dimensional array
Ufunc: Universal functions
ndarray
import numpy as np
np.__version__
'1.21.2'
l = [1, 2.32,"Darshan",5-9j]
l
[1, 2.32, 'Darshan', (5-9j)]
a = 10
b = 20
print(a)
print(b)
10
20