import numpy as np
#creating an array
arr = np.ones((5, 5))
arr *= np.arange(5)
print(arr)