what does ` ` do in ' '.join([`x * x` for x in range(1, 6)])?

Roy Smith roy at panix.com
Sat Sep 27 08:34:57 EDT 2008


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))



More information about the Python-list mailing list