import numpy as np
Z1 = np.array([1,2,3,4])
print(Z1)
print(Z1.shape)
Z2 = np.array([1,2,3,4]).reshape(1,4)
print(Z2)
print(Z2.shape)
W = np.array([1,2,3,4]).reshape(4,1)
print(W)
print(W.shape)
print(Z1*W)
print(Z2*W)
print(W*Z2)
print()
print(Z1*Z2)