- , Python , . , , :
>>> x = []
>>> x.append(1)
>>> x.append(2)
>>> x
[1, 2]
>>> x.pop()
2
>>> x
[1]
>>>
Or, to insert an element after a given element:
>>> x = [1,2,3,4,5,6,7]
>>> x.insert(3,"a")
>>> x
[1, 2, 3, 'a', 4, 5, 6, 7]
>>>
See, for example, the Python documentation in data structures .
However, it uses an abstract list data type ( ADT ). In contrast, a βlinked listβ is not an ADT, but one of many possible ways to implement this ADT.
source
share