Python Dodaj do listy z indeksem
list.insert(index, element)
Woolly Necked Stork
list.insert(index, element)
thislist = ["apple", "banana", "cherry"]
thislist.insert(1, "orange")
>>>
>>> a = [1, 2, 4]
>>> print a
[1, 2, 4]
>>> b = a[:2] + [3] + a[2:]
>>> print a
[1, 2, 4]
>>> print b
[1, 2, 3, 4]