I have the following code :
import numpy as np
x=np.array([[3, 5, 1]])
print(x.shape) #get (1,3)
np.multiply(x.shape, 8) #get [ 8, 24]
print(*x.shape) # get 1 3
np.array((np.multiply(*x.shape), 8)) #get [3, 8]
Please explain why/how np.multiply(*x.shape, 8) get [3, 8] ?
x,shapeis just a tuple. Why multiply it?