[Tutor] Can someone please help me with this?

Dave Angel davea at davea.name
Thu Nov 7 05:21:23 CET 2013



Alex Kleider<akleider at sonic.net> wrote: 
> On 2013-11-06 01:52, Oscar Benjamin wrote:
> > 
> > I'll give one suggestion which is that to concatenate one list onto
> > the end of another you would use the .extend() method rather than the
> > .append() method.
> What would be the advantage/disadvantage of what you suggest vs using 
> the plus (+) operand as in
> l = l1 + l2
> ??
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

The plus operator doesn't append to the list; it makes a new one.  Doesn't meet spec.

--
Android Usenet Reader
http://android.newsgroupstats.hk



More information about the Tutor mailing list