demo_string_format1.py:
age = 36 txt = "My name is John, and I am {}" print(txt.format(age))
➜ begtut>python demo_string_format1.py
My name is John, and I am 36