NumPy: ===== NumPy ==> Numerical Python why? ==== for performing the complex math operations. open source and free software we can use to perform array based computing. array ==> collection of similar data items. 1-d array ==> one dimensional array arranging of elements in either row or in column. 2-d array ==> two dimensional array arranging of elements in rows and columns both. (matrix) n-d array ==> n-dimensional array (Image processing) History: ======== ==> Developed by "Travis Oliphant" ==> in 2005 ==> using C and Python. C ==> fastest execution Python ==> easy development ==> Travis gone through a module/library ==> Numeric Library (Jim Hungunian) Python ==> Interpreter dependent language C, C++, Perl and Shell script ==> NumPy ==> 3rd party module/package/library we required to import this module Syntax: import numpy ==> we must required to install the numpy extensively before the importing. ==> to install any 3rd party modules: in python only there is one package manager ==> pip Syntax: (for installation) pip install module-name ex: pip install numpy Syntax (for uninstallation) pip unistall module-name ex: pip uninstall numpy do we have pip? =============== yes. # WAP IN PYTHON TO PRINT THE VERSION OF NUMPY. import numpy print(numpy.__version__) ============================ ==> we can use the numpy with alias name. Syntax: import numpy as alias-name # WAP IN PYTHON TO GET VERSION OF NUMPY. # numpy with alias name import numpy as rk print(rk.__version__)