This is a question a bit simple but I can not solve it on my own, and I have not found any post related to this topic, my question is this:
matriz=[[1,1,1],[1,1,1],[1,1,1]]
print(matriz)
matriz[0]=matriz[0]*2
print(matriz)
What I want to do is multiply by two each grid in row 0, so that it looks like this:
matriz=[[2,2,2],[1,1,1],[1,1,1]]
And not like this:
matriz=[[1, 1, 1, 1, 1, 1], [1, 1, 1], [1, 1, 1]]
It would not be inconvenient for me to use numpy, but I have not been able to solve the problem with numpy either.
Greetings, thank you.