Re: this worked before...' '.join([`x x` for x in range(1, 6)])

2008-05-19 Thread Marc 'BlackJack' Rintsch
On Mon, 19 May 2008 15:28:48 -0700, notnorwegian wrote: > ' '.join([`x x` for x in range(1, 6)]) > > anyone can tell me what im doing wrong? I doubt that this worked before because that's a syntax error: In [84]: ' '.join([`x x` for x in range(1, 6)]) -

Re: this worked before...' '.join([`x x` for x in range(1, 6)])

2008-05-19 Thread Arnaud Delobelle
John McMonagle <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> ' '.join([`x x` for x in range(1, 6)]) >> >> anyone can tell me what im doing wrong? >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > > > ' '.join(['%s %s' % (str(x), str(x)) for x in range(1,6)]) > > or >

Re: this worked before...' '.join([`x x` for x in range(1, 6)])

2008-05-19 Thread John McMonagle
[EMAIL PROTECTED] wrote: > ' '.join([`x x` for x in range(1, 6)]) > > anyone can tell me what im doing wrong? > -- > http://mail.python.org/mailman/listinfo/python-list > ' '.join(['%s %s' % (str(x), str(x)) for x in range(1,6)]) or ' '.join([str(x)+' '+str(x) for x in range(1,6)]) outputs

this worked before...' '.join([`x x` for x in range(1, 6)])

2008-05-19 Thread notnorwegian
' '.join([`x x` for x in range(1, 6)]) anyone can tell me what im doing wrong? -- http://mail.python.org/mailman/listinfo/python-list