3 ms·
Another point from the discussion was that there are already three ways to do string formatting in Python: 1. `"Value: %i" % value` 2. `"Value: {}".format(val
by yoha 11y ago
Another point from the discussion was that there are already three ways to do string formatting in Python:
1. `"Value: %i" % value`
2. `"Value: {}".format(value)`
3. `string.Template('Value: $value').substitute(value=value)`
However, the Zen of Python (https://www.python.org/dev/peps/pep-0020/ https://www.python.org/dev/peps/pep-0020/ or run `import this` in a Python interpreter) says "There should be one-- and preferably only one --obvious way to do it.".