In [43]:
li=[22,33,1,5,99,33,66,-66,44,55,33]
In [10]:
li.sort()
li
Out[10]:
In [11]:
li.reverse()
li
Out[11]:
In [17]:
li.count(33)
Out[17]:
In [18]:
li.insert(0,88)
In [19]:
li
Out[19]:
In [21]:
li.insert(1,567)
In [22]:
li
Out[22]:
In [27]:
li.index(33)
Out[27]:
In [28]:
li.pop()
Out[28]:
In [29]:
li
Out[29]:
In [30]:
li.sort()
li
Out[30]:
In [31]:
li.pop()
Out[31]:
In [32]:
li
Out[32]:
In [33]:
li.pop(0)
Out[33]:
In [34]:
li
Out[34]:
In [35]:
li.remove
Out[35]:
In [40]:
li.remove()
In [39]:
li
Out[39]:
In [41]:
li.clear()
In [42]:
li
Out[42]:
In [44]:
li
Out[44]:
In [45]:
type(li)
Out[45]:
In [46]:
import numpy as np
In [47]:
np.array(li)
Out[47]:
In [48]:
a=np.array(li)
In [49]:
a
Out[49]:
In [50]:
type(a)
Out[50]:
In [51]:
li1=[22,33,1,5,99,33,66,-66,44,55,33,"kumar"]
In [52]:
li1
Out[52]:
In [53]:
b=np.array(li1)
In [54]:
b
Out[54]:
In [56]:
c=np.array(3,5,6,7)
In [57]:
c=np.array([3,5,6,7])
In [58]:
c
Out[58]:
No comments:
Post a Comment