[Tutor] Prepend to a list?

Jay Loden python at jayloden.com
Sun Mar 20 02:52:16 CET 2005


How can I prepend something to a list? I thought that I could do
list.prepend()  since you can do list.append() but apparently not.  Any way to 
add something to a list at the beginning, or do I just have to make a new 
list? 

-Jay


More information about the Tutor mailing list