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)])
-
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
>
[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
' '.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