On Tue, Dec 17, 2013 at 4:51 AM, Chris Angelico <ros...@gmail.com> wrote: > t = ['Start','End'] > a = [[1,2,3,4], > [5,6,7,8]] > result = [] > for cur in a: > result.append("%s - %d"%(t[0],cur[2])) > result.append("%s - %d"%(t[1],cur[3]))
Whoops, I misread the desired output, I thought you wanted a four-string list. It's two strings. That's actually easier, and Mark's solution is pretty much what I'd go for. ChrisA -- https://mail.python.org/mailman/listinfo/python-list