"inhahe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i figured out a solution > > sum([x,2*x] for x in range(4)],[]) #not tested
Nice... thanks; I probably had seen code using 'sum' to flatten but hadn't actually understood how it worked. After playing around some it's now clear... (Add one more opening bracket to your solution to make the interpreter happy -- I know you know this and it was missed only due to not actually trying it ought) ---Joel -- http://mail.python.org/mailman/listinfo/python-list