import numpy as np

y = np.array(((1,2,3),(4,5,6),(7,8,9)))

OUTPUT:

print(y.flatten())

[1 2 3 4 5 6 7 8 9]

print(y.ravel())

[1 2 3 4 5 6 7 8 9]

Both functions return the same list. Then what is the need for two different functions performing the same job?