You append numpy array to a list, so you got 2D.
Try this
import numpy as np
a, b, c, d, e = (np.random.randint(0,15,size=7) for i in range(5))
print(a,b,c,d,e)
solved Printing random 1-D arrays in python
You append numpy array to a list, so you got 2D.
Try this
import numpy as np
a, b, c, d, e = (np.random.randint(0,15,size=7) for i in range(5))
print(a,b,c,d,e)
solved Printing random 1-D arrays in python