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