insertion in lists
toto at titi.de
Wed Mar 3 20:49:56 CET 2004
> I'm trying to have a kind of multi-dimensional list which seems to me to
> be the best way to have an array of not known extension, at the begining
> of the program.
> if I have:
> list 
> and want to have list
> how can I insert the element to that list, for example?
> just to put things clearer, if I wanted to insert the element in list I
> could do list.insert(0,element).
> I've tried list.insert(0,element) but gives me an error.
Are you sure you're trying to code some python ????
To define a list named myList then :
To append myElement to this list :
More information about the Python-list