Question:

Write a python program to add two matrices

Program:

Explanation:

If A and B are the two matrices for addition, both of them must be of the same order.

If i and j are the index positions, then result[i][j] = A[i][j] + B[i][j]

Output:

Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Leave a Reply