Re: [Tutor] Treating lists as lists

2011-11-29 Thread Mark Lybrand
Thanks everyone. Right before quitting time my brain froze up :) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Treating lists as lists

2011-11-29 Thread Dave Angel
On 11/29/2011 08:09 PM, Mark Lybrand wrote: I am pretty sure I saw this somewhere but now I can't. Here's the problem: list = ['hello', 'world'] template = '%s %s' print template % list But it appears that list is just one (list) when I want to treat it as two (items). I can do that right? Ho

Re: [Tutor] Treating lists as lists

2011-11-29 Thread Hugo Arts
On Wed, Nov 30, 2011 at 2:09 AM, Mark Lybrand wrote: > I am pretty sure I saw this somewhere but now I can't.  Here's the problem: > list = ['hello', 'world'] > template = '%s %s' > print template % list > > But it appears that list is just one (list) when I want to treat it as two > (items).  I c

[Tutor] Treating lists as lists

2011-11-29 Thread Mark Lybrand
I am pretty sure I saw this somewhere but now I can't. Here's the problem: list = ['hello', 'world'] template = '%s %s' print template % list But it appears that list is just one (list) when I want to treat it as two (items). I can do that right? How, pretty please? Mark __