3 ms·
>With format and % functions, you will be able to spot the variable in the argument list, which is part of the code itself. That is not always true, e.g.:
by nokcha 11y ago
>With format and % functions, you will be able to spot the variable in the argument list, which is part of the code itself.
That is not always true, e.g.:
>>> x = 2
>>> print("x = {x}".format(**vars()))
x = 2