0

Can u put a list in a list to make a matrix of some sort

24th Jul 2016, 5:25 PM
Silver Night
Silver Night - avatar
2 Respostas
+ 2
Yes you can. Ex. [[1, 0, 0], [0, 1, 0], [0, 0, 1]] Also you can take a look at "Numpy" module
25th Jul 2016, 10:18 PM
MiladDev
MiladDev - avatar
0
Yes. Nested lists: [0, 1, 2, 3, [a, b, c, [5, 4, 3, 2, 1]], 5, 6, 7]. They make matrices easy to create
28th Jul 2016, 5:50 AM
Eugene E
Eugene E - avatar