import numpy as np def test(): return np.array([1, 2, 3]) type(test())
I would expect the output to be
numpy.ndarray. However, I get nothing when I run this script.
I have tried different things instead of the type function; for example,
print(test()) worked as expected. But for some reason the type function doesn't seem to work. Could you please enlightment me as to why? Thanks!