l.extend does work. Thanks!<br><br>On Monday, October 22, 2012, Saad Javed  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My program downloads multiple entry values from the net. I'm trying to combine them in a list in a particular sequence.<div>
<div><br></div><div>l = []</div><div>feed1 = urllib2.urlopen(rssPage1)</div><div>tree1 = etree.parse(feed1)</div>
<div>x = tree1.xpath("/rss/channel/item/title/text()")</div><div>y = tree1.xpath("/rss/channel/item/pubDate/text()")</div><div>z = tree1.xpath("/rss/channel/item/link/text()")</div><div>for e, f, g in zip(x, y, z): </div>

<div><span style="white-space:pre-wrap">  </span>l.append([e, f, g])</div><div><span style="white-space:pre-wrap">      </span>print l</div></div><div><br></div><div>The problem I'm facing is that the values don't combine into a single list ("l"). It keeps printing multiple lists with three values e, f, g as the xml tree is parsed.</div>

<div><br></div>
</blockquote>