price = 49 txt = "The price is {:.2f} dollars" print(txt.format(price))