Answer
[[2, 1, 1], [1, 1, 1], [1, 1, 1]]
Work Step by Step
matrix = []
matrix.append(3 * [1])
matrix.append(3 * [1])
matrix.append(3 * [1])
matrix[0][0] = 2
print(matrix)
The output of this code will be:
[[2, 1, 1], [1, 1, 1], [1, 1, 1]]