0% found this document useful (0 votes)
12 views

Python

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Python

Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

Another useful source

https://www.programiz.com/python-programming
Array- An array is a special variable that can hold more than one value at a time.
Both the list and array look similar but one major difference is that an array is
optimized for arithmetical computations.
Syntax - Arr = np.array([1,2,3])

Matrix-Matrix is a 2-D (2-Dimentional array). It has both rows and columns. The
horizontal arrangement of data are rows and the vertical arrangement of data
are columns.
Syntax- Mat = np.array([[1,2,3,1],[4,5,6,4],[7,8,9,7]])
Above code will create a matrix of 3 rows and 4 columns

You might also like