examples/strings/format.py
from __future__ import print_function

a = 1
b = 'anther'

c = "A template with " + str(a) + " and " + b + " value."
print(c)  # A template with 1 and anther value.

d = "A template with {} and {} value.".format(a, b)
print(d)  # A template with 1 and anther value.