Format Code Repeat Counts?

Scott David Daniels Scott.Daniels at Acm.Org
Fri Aug 14 17:04:26 CEST 2009


MRAB wrote:
> Scott David Daniels wrote:
>> MRAB wrote:
>>> The shortest I can come up with is:
>>>     "[" + "][".join(letters) + "]"
>>
>> Maybe a golf shot:
>>       "][".join(letters).join("[]")
>>
> Even shorter:
> 
>     "["+"][".join(letters)+"]"
> 
> :-)
I was going by PEP8 rules. ;-)

--Scott David Daniels
Scott David Daniels at Acm.Org



More information about the Python-list mailing list