Given:<br />
<br />
l = [['NM100', 1, 3], ['NM100', 7, 10], ['NM200', 13, 16]]<br />
<br />
want something like:<br />
z = [['NM100',[1,2,3,7,8,9,10]],['NM200',[13,14,15,16]]]<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>