list.insert

Eric J. Van der Velden ericjvandervelden at gmail.com
Wed Jul 14 10:54:58 EDT 2010


Hi,

I understand this:

>>> l=[1,2,3]
>>> l[1:2]=[8,9]
>>> l
[1,8,9,3]

But how do you do this with list.insert?

Thanks,

Eric J.



More information about the Python-list mailing list