Name

.insert()

Examples
letters = ['b', 'c', 'd']
print(letters) # Prints ['b', 'c', 'd']
letters.insert(0, 'a')
print(letters) # Prints ['a', 'b', 'c', 'd']
Description
Syntax
a.insert(i, x)
Parameters
a
i
x
Related .append()
.pop()
.reverse()
.index()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License