Arrays and Matrices in Python

This tutorial gives introduction about arrays and matrices in Python, provided by the Numpy module.

1  Array

1.1  Initialization of arrays

Arrays are initialized from lists or tuples using the numpy.array() function. Two dimentional arrays are initialized using list of lists, or tuples of lists, or list of tuples, etc. Higher dimensional arrays can be initialized by further nesting lists or tuples. Read more Arrays and Matrices in Python