How to create arrays with numpy

There are several ways to create arrays.For example, you can create an array from a regular Python list or tuple using the array function. The type of the resulting array is deduced from the type of the elements in the sequences.

Arrays must be of same shape in case of addtion, below code shows error whem trying to add two arrays of different shapes.

Category: DA