Python Program to Add Two Matrices using List

A=[[1,5,4],
	[1,3,6],
	[5,2,7]]
B=[[2,5,9],
	[3,8,6],
	[4,2,6]]
result=[[0,0,0],
	[0,0,0],
	[0,0,0]]
for i in range(len(A)):
	for j in range(len(B)):
		result[i][j]=A[i][j]+B[i][j]
for r in result:
        print(r)

Output:
Python Program to Add Two Matrices using List