# Flatten a Matrix in Python using NumPy # importing numpy as npimport numpy as np  # declare matrix with npgfg = np.array([[2, 3], [4, 5]])  # using array.flatten() methodflat_gfg = gfg.flatten()print(flat_gfg)