template string python 3 code example Example: str.format python 3 print("Sammy ate {0:f} percent of a {1}!".format(75, "pizza"))