[Tutor] Insert elements in a lis

Glen Wheeler gew75 at hotmail.com
Wed Aug 11 10:30:31 CEST 2004


> [..]
> >>> L = [1,3,5].insert(11,2)
> >>> print L
> 
> And in the email "abbreviated" it, but forgot that insert doesn't 
> actually return the new list - oops!
> 

  Another case of e-mail abbreviation?

  I assume this is meant to be:

>>> l = [1,2,3]
>>> l.insert(1,2)
>>> print l

  ???


More information about the Tutor mailing list