[Tutor] Insert elements in a lis

Alan Gauld alan.gauld at blueyonder.co.uk
Wed Aug 11 20:04:05 CEST 2004


> I actually did:
> 
> >>> L = [1,3,5].insert(11,2)
> >>> print L
> 

Actually I didn't even do that! 
I did:

>>> L = [1,3,5].
>>> L.insert(1,2)
>>> print L
 
:-)

Alan G.


More information about the Tutor mailing list