numpy in python | python course_02

Spread the love

numpy in python :

numpy exercise and solution :

This blog post tutorial  are very useful for all students in this post I have cover basic numpy operation and finally give you numpy exercise for practice ans solution, so let’s enjoy.
Numpy is most powerful and widely used package for data science and machine learning. It contain the following other things:
numpy in python | python course
fig 01) numpy in python | python course_02
  1. a powerful N-dimensional array object
  2. sophisticated (broadcasting) functions
  3. tools for integrating C/C++ and Fortran code
  4. useful linear algebra, Fourier transform, and random numbers capabilitie
It’s also  scientific uses, NumPy can also be used as an multi-dimensional container of generic and Arbitary data type. This allows Numpy to seamlessly and speedily integrates with a wide variety of database.
NumPy is licensed under the BSD license, enabling reuse with few restriction.


To install NumPy, we frequently recommend using a scientific Python distribution. See Installing the SciPy Stack for detail.
Many online tutorial, courses, and books are available to get started with NumPy. For a quick introduction to Numpy we provides the NumPy Tutorial. We also recommend the SciPy Lecture Note for a broader introduction to the scientific Python ecosystems.
For more information on the


1) simply import the numpy library. and then perform the operation:
import numpy as np
arr = np.arange(0,10)
arr + arr
array([ 0,  2,  4,  6,  8, 10, 12, 14, 16, 18])

2)sub. operation :
arr - arr

Universal Array operation:

Numpy comes under  many universal array functions, which are essentially just mathematical operation you can use to perform the operation across on array. Let’s see some example:
#Take Square Root

array([ 0. , 1. , 1.41421357, 1.73205083, 2. ,

2.236066798, 2.449489734, 2.645751341, 2.82842714, 3. ])

Stack see 
Some of FAQ :
Does Python come with NumPy?
NumPy is an open source Python package for python for data science and machine learning. NumPy can be support large, multidimensional array and the matrices. But also NumPy array are not flexible like Python list, you can store same data type in each columns. NumPy is essential for another packages like SciPy,  OpenC  and Vscikit-learn.

Where is NumPy used?
 NumPy package can be used to perform different operation. NumPy is an open source Python package for python for data science and machine learning.The Narray is a multidimensional array used to store value of same datatypes in pyrhon. These array are indexed just like starts,Sequences with zero.

Is NumPy a framework?
The data structure in numpy is the N-dimensional array, which is much more flexible and efficient than standard Python list. NumPy is a numerical and mathematical library.
Tags: numpy in python,Does Python come with NumPy?,Where is NumPy used?,Is NumPy a framework?
(Note= please if you like it then comment and share this blog post to friends)

sachin Pagar

I am Mr. Sachin pagar Embedded software engineer, the founder of Sach Educational Support(Pythonslearning), a Passionate Educational Blogger and Author, who love to share the informative content on educational resources.

Leave a Reply