demo_string_format2.py:
quantity = 3 itemno = 567 price = 49.95 myorder = "I want {} pieces of item {} for {} dollars." print(myorder.format(quantity, itemno, price))
C:\Users\My Name>python demo_string_format2.py
I want 3 pieces of item 567 for 49.95 dollars.