23 Feb
2021
23 Feb
'21
5:47 p.m.
On Wed, Feb 24, 2021 at 4:13 AM Richard Damon
As far as between % or .format(), I think the documentation is fairly clear that the % method is 'old' and if not 'formally' deprecated, is no longer considered the 'obvious' way to do it (even if some people will still do it that way for the simplest cases).
Not really - both forms have their places. You use .format() when you need to be able to reorder arguments, you use percent formatting when you want a compact and simple notation. It's like how we have both string methods and regular expressions - neither one deprecates the other. ChrisA