python 3 string formatting code example
Example 1: str.format python 3
print("Sammy the {pr} {1} a {0}.".format("shark", "made", pr = "pull request"))
Example 2: new python string formatting
>>> f'Hello, {name}!'
'Hello, Bob!'
Example 3: str.format python 3
print("Sammy ate {0:f} percent of a {1}!".format(75, "pizza"))