I'm working with matrices. I have one here which is described as a list which contains a list for every row. I was trying to group every row into a separate list with a specific name. For example, for the matrix [[0, 2, 1, 4], [1, 1, 2, 6], [2, 1, 1, 7]], I want to create 3 lists named row1, row2, row3, with every list in its corresponding variable. This is what I tried:
names = ["row1", "row2", "row3", "row4", "row5", "row6"]
for i in range(len(coeffs)):
str(names[i]) = coeffs[i]
However, this gives me an error.
SyntaxError: can't assign to function call
How do I go about this?