In Python, it is tedious to write:
print \"foo is\" + bar + \'.\'
Can I do something like this in Python?
print \"foo is #{ba
String formatting
>>> bar = 1 >>> print "foo is {}.".format(bar) foo is 1.