Smart way to create matrix in Python

1 year ago
21

This video shows you how to create square matrices in Python using normal lists and NumPy.

Using NumPy has the advantage to reduce the amount of code when working with matrices.
Matrices are called multidimensional arrays in NumPy.

0:00 Intro
0:34 Recap: list data structure
1:12 Nested lists
1:31 Limitations of lists
1:45 NumPy
2:00 Python script: main function
4:04 The `gen_matrix` function
4:59 The `matrix_set` function
5:16 the `tolist` method
5:45 Outtro

#python #matrix #numpy #functions #programming

Loading comments...