>>> arow [0, 0] >>> table= arow * 4 >>> table [0, 0, 0, 0, 0, 0, 0, 0] >>> table = [arow] * 4 >>> table [[0, 0], [0, 0], [0, 0], [0, 0]] >>> t = [[0]*2]*4 >>> t [[0, 0], [0, 0], [0, 0], [0, 0]] >>> def init(matrix): for row in range(len(matrix)): for col in range(len(matrix[row])): matrix[row][col] = row*10 + col print matrix >>> t [[0, 0], [0, 0], [0, 0], [0, 0]] >>> init(t) [[30, 31], [30, 31], [30, 31], [30, 31]] >>> t [[30, 31], [30, 31], [30, 31], [30, 31]] >>> table [[0, 0], [0, 0], [0, 0], [0, 0]] >>> init(table) [[30, 31], [30, 31], [30, 31], [30, 31]] >>> arow [30, 31] >>> arow[0] = 0 >>> arow[1] = 0 >>> arow [0, 0] >>> table= [arow[:] ] * 4 >>> table [[0, 0], [0, 0], [0, 0], [0, 0]] >>> init(table) [[30, 31], [30, 31], [30, 31], [30, 31]] >>> table = [] >>> for i in range(4): table.append(arow[:]) >>> table [[0, 0], [0, 0], [0, 0], [0, 0]] >>> init(table) [[0, 1], [10, 11], [20, 21], [30, 31]] >>>