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 dani...@acm.org -- http://mail.python.org/mailman/listinfo/python-list