ShriRam Changed status to publish August 21, 2023
# formate functions
#named indexes:
txt1 = “My name is {fname}, I’m {age}”.format(fname = “Shri Ram”, age = 36)
#numbered indexes:
txt2 = “My name is {0}, I’m {1}”.format(“Shri Ram”,36)
#empty placeholders:
txt3 = “My name is {}, I’m {}”.format(“Shri Ram”,36)
print(txt1)
print(txt2)
print(txt3)
ShriRam Changed status to publish August 17, 2023