[TUHS] [TULSA] Re: python
Larry McVoy
lm at mcvoy.com
Fri Aug 4 09:47:02 AEST 2023
On Thu, Aug 03, 2023 at 12:57:31PM -0400, Phil Budne wrote:
> On the subject of "no printf", there is not one, not two, but THREE
> ways to format strings, easily compounded with print:
>
> print("%s %s" % ("hello", "world"))
> print("{1} {two}".format("hello", two="world"))
> print(f"{greeting} {populace}")
>
> I'm pretty sure the last method (which initially made me vomit, due to
All of those make me vomit. Pretty much every sane language has printf.
More information about the TUHS
mailing list