Data structure in python
Python list
>>> arr = [22, 33, 44, 55, 66, 77, 1, 2, 3, 4, 5, 6]
>>> arr
[22, 33, 44, 55, 66, 77, 1, 2, 3, 4, 5, 6]
>>> arr.index(2)
7
>>> arr.remove(77)
>>> arr
[22, 33, 44, 55, 66, 1, 2, 3, 4, 5, 6]
>>> arr.reverse()
>>> arr
[6, 5, 4, 3, 2, 1, 66, 55, 44, 33, 22]
>>> arr.sort()
>>> arr
[1, 2, 3, 4, 5, 6, 22, 33, 44, 55, 66]
>>> arr.pop()
66
>>> arr
[1, 2, 3, 4, 5, 6, 22, 33, 44, 55]