Here a screenshot of output. Please explain why it works this way and provide me with a solution on how to make the copy of a list of lists
matrix = [['I','A','O','O','I'],['I','A','O','O','I'],['I','A','O','O','I'],['I','A','O','O','I'],['I','A','O','O','I']]
matrix_1d = ['I','A','O','O','I']
matrix2 = matrix.copy()
matrix2_1d = matrix_1d.copy()
def printMat(m):
for i in range(len(m)):
print (m[i])
matrix[0][0] = 'lol'
matrix2[0][1] = 'kek'
matrix_1d[0] = 'lol'
matrix2_1d[1] = 'kek'
printMat(matrix)
print("_")
printMat(matrix2)
print("_")
print(matrix_1d)
print("_")
print(matrix2_1d)