[Tutor] Standard way to append to a list?
Tue Apr 15 08:30:02 2003
Brian Christopher Robinson <firstname.lastname@example.org> writes:
>Say I have:
>list = [1, 2, 3]
>What is the standard way to add 4 to the end of the list? I know:
>list = list + 
>would work. What else is there?
List = [1, 2, 3]
Also handy for adding more than one item:
By the way, I know this is just an example, but I would avoid using the
word "list" since it is a built-in.