Home
Python
2D
Application
Buildin Function
Class
Data Structure
Data Type
Database
Development
Dictionary
Event
Exception
File
Function
GUI Pmw
GUI Tk
Language Basics
List
Math
Network
String
System
Thread
Tuple
Utility
XML
Menu
Adding Elements to Lists : List Insert « List « Python
Python
List
List Insert
Adding Elements to Lists
li = [
'a'
,
'b'
,
'mpilgrim'
,
'z'
,
'example'
] li.insert(2,
"new"
) print li
Related examples in the same category
1.
List insert(i, x)