View Single Post
Old May 8th, 2006, 11:13 AM   #7
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

hydroxide, you are right
# this inserts 'new' at index 3
my_list = ['a', 'b', 'c', 'd', 'e']
my_list[3:3] = ['new']
print my_list  # ['a', 'b', 'c', 'new', 'd', 'e']
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote