Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
price = 49 txt = "The price is {:.2f} dollars" print(txt.format(price))
x
price
=
49
txt
=
"The price is {:.2f} dollars"
print
(
txt
.
format
(
price
))
The price is 49.00 dollars