Hi Larry,
I hate Python because there is no printf in the base
language.
There's print() with the format-string part being promoted into the
language as the ‘%’ operator when the left operand is a string.
It returns a string.
>> '%10d' % (6*7)
' 42'
>> '%s %s!\n' % ('hello',
'world')
'hello world!\n'
>> '%10d' % 6*7
' 6 6 6 6 6 6
6'
>> print('foo')
foo
>> print('%.3s' %
'barxyzzy')
bar
>>
So similar to AWK or Perl's sprintf() and Go's fmt.Sprintf() in that it
returns a dynamically-allocated string.
--
Cheers, Ralph.