string formatting in python what is 1:3 code example
Example 1: python format strings
name = "Rick"
age = 42
print(f"My name is {name} and I am {age} years old")
Example 2: str.format python 3
print("Sammy ate {0:f} percent of a {1}!".format(75, "pizza"))