Matrix in list formate | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Matrix in list formate

How to represent matrix in list formate

27th Mar 2020, 9:13 AM
prateek mk
prateek mk - avatar
1 Answer
+ 6
With lists in lists: m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] You can reformat for easier reading: m = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]
27th Mar 2020, 9:18 AM
HonFu
HonFu - avatar