[Tutor] Treating lists as lists

Mark Lybrand mlybrand at gmail.com
Wed Nov 30 02:09:34 CET 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111129/508c4777/attachment-0001.html>


More information about the Tutor mailing list