NumPy Tutorial

NumPy Tutorial

NumPy, which stands for Numerical Python, is a library consisting of multidimensional array objects and a collection of routines for processing those arrays. Using NumPy, mathematical and logical operations on arrays can be performed. This tutorial explains the basics of NumPy such as its architecture and environment. It also discusses the various array functions, types of indexing, etc. An introduction to Matplotlib is also provided. All this is explained with the help of examples for better understanding.


This tutorial has been prepared for those who want to learn about the basics and various functions of NumPy. It is specifically useful for algorithm developers. After completing this tutorial, you will find yourself at a moderate level of expertise from where you can take yourself to higher levels of expertise.


You should have a basic understanding of computer programming terminologies. A basic understanding of Python and any of the programming languages is a plus.

Execute NumPy Online

For most of the examples given in this tutorial you will find Try it option, so just make use of this option to execute your NumPy programs at the spot and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box −

import numpy as np 
a = 'hello world' 
print a