I was experimenting with numpy arrays, I had this very simple example:
list = [2, 3]
list.append(np.array([3.2, 9.0, 7.6]))
And if I do print(list)
, it prints: [2, 3, array([3.2, 9. , 7.6])]
But if I do print(list[-1])
, it prints only [3.2 9. 7.6]
Can anyone expalin this for me, that if I print the numpy array as the last element of my python list, why does it print without the "array", the brackets, and the comas between the numbers?
Many thanks