/* */

Tuesday 22 March 2011

Insert elements

numbers = [1,5]
numbers [1:1] = [2,3,4]
numbers
[1,2,3,4,5,]

The inserted elements are placed in the list at position 1

No comments:

Post a Comment