In article <40efa068-688c-4dcf-b11e-938c0d4d006a at w39g2000prb.googlegroups.com>, alex23 <wuwei23 at gmail.com> wrote: > ' '.join((str(x * x) for x in range(1,6))) Aren't the outer set of parens redundant? This works just as well: ' '.join(str(x * x) for x in range(1,6))