Easier Python string formatting
Easier Python string formatting
Posted Sep 10, 2015 17:28 UTC (Thu) by josh (subscriber, #17465)Parent article: Easier Python string formatting
> The format() string method is more flexible, but is somewhat verbose
.format() doesn't need to be any more verbose than the % operator, if you don't use names:
'The answer = {}'.format(42)