Run »
txt = "For only {price:.2f} dollars!" print(txt.format(price = 49))
For only 49.00 dollars!