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)+"]"

:-)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to