On 9/21/2010 6:30 PM, Norman Khine wrote:
a = ['a', 'b', 'e']
>>>  b = ['c', 'd']
i want to put the items of 'b' at [-2] for example.

>>> a[-2:-2]=b
>>> a
['a', 'c', 'd', 'b', 'e']
>>>

--
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to