D
Donn Ingle
Hi,
I'm sure I one read somewhere that there is a simple way to set the order
of replacements withing a string *without* using a dictionary.
What I mean is:A and B
Now, is there something quick like:B and A
?
I know it can be done with a dict:
d = { "one" : "A", "two" : "B" }
s = "%(two)s and %(one)s" % d
\d
I'm sure I one read somewhere that there is a simple way to set the order
of replacements withing a string *without* using a dictionary.
What I mean is:A and B
Now, is there something quick like:B and A
?
I know it can be done with a dict:
d = { "one" : "A", "two" : "B" }
s = "%(two)s and %(one)s" % d
\d