7 Sep
2015
7 Sep
'15
11:39 a.m.
Sven R. Kunze
print("Hello, I am %s. My favorite number is %s." % (b, a))
... and this is the other. Being available for non-literals means they can be used with i18n, string tables, and other transformations. Percent formatting is similar to what other C-derived languages have,
Still necessary? Really, really necessary? Or just because we can?
Absolutely. For many Python users this is the preferred form. I find that of all variations, this one is the most readable. Stefan Krah