I have a name list, and I want to construct a new list of the same type of data inside the list. How can I do it? What if it is a numpy array?
x=[1,2,3,4]
newx=[x,5,6]
[[1, 2, 3, 4], 5, 6]
#numpy
y=np.array([0,1,2,3,4])
newy=[y,5,6]
[array([0, 1, 2, 3, 4]), 5, 6]
Desired output
[1, 2, 3, 4, 5, 6]