import numpy as np
arr=np.array([[1,2,3,4,7,8,9,10],[11,12,13,14,17,18,19,20]])
print(arr.reshape(4,4))
arr1=np.array([1,2,3,4,5,6,7,8,9,10,11,12])
newarr=arr1.reshape(2,3,2)
print("3D Array is:")
print(newarr)
