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 #solvecomputerscience
On this page of the site you can watch the video online Smart way to create matrix in Python with a duration of hours minute second in good quality, which was uploaded by the user Solve Computer Science 27 May 2023, share the link with friends and acquaintances, this video has already been watched 170 times on youtube and it was liked by 1 viewers. Enjoy your viewing!