D
davidfx
Hello everyone,
I just have a quick question about .format and %r %s %d.
Should we always be using .format() for formatting strings or %?
Example a = 'apples'
print "I love {0}.".format(a)
If I wanted to put .format into a variable, how would I do that.
Thanks for your information in advance.
David
I just have a quick question about .format and %r %s %d.
Should we always be using .format() for formatting strings or %?
Example a = 'apples'
print "I love {0}.".format(a)
If I wanted to put .format into a variable, how would I do that.
Thanks for your information in advance.
David