import numpy as np

#creation of a list
l1=[1,2,3,4]
print(l1)

#prints as list
print(type(l1))

#conversion of list to np array
d1=np.array(l1)

print(d1)

#prints as ndarray
print(type(d1))



#OUTPUT:
'''
[1, 2, 3, 4]
<class 'list'>
[1 2 3 4]
<class 'numpy.ndarray'>

'''