Articles → Python → Format Function In Python
Format Function In Python
Purpose
Example
print("My Name is ",name)
print("My Name is {}".format(name))
print("this is {} and another {}".format("placeholder1", "placeholder2"))
print("this is {one} and another {two}".format(one = "placeholder1", two = "placeholder2"))