I\'m using a list of lists to store a matrix in python. I tried to initialise a 2x3 Zero matrix as follows.
mat=[[0]*2]*3
However, when I chang
This will work
col = 2 row = 3 [[0] * col for row in xrange(row)]