What is bad about the old school:
>>> args = ["hello", "bobbity bob", "bye"] >>> s = "" >>> for x in args: ... s += "'" + x + "' " ... >>> s = s[:-1] >>> print s 'hello' 'bobbity bob' 'bye'
It doesnโt matter if one-word arguments are quoted.
source share