# Adding and Subtracting Matrices in Python 
 # importing numpy as np
import numpy as np
  
  
# creating first matrix
A = np.array([[1, 2], [3, 4]])
  
# creating second matrix
B = np.array([[4, 5], [6, 7]])
  
print("Printing elements of first matrix")
print(A)
print("Printing elements of second matrix")
print(B)
  
# adding two matrix
print("Addition of two matrix")
print(np.add(A, B))