You have already completed these exercises!
Do you want to take them again?
You completed the Python Format Strings Exercises from W3Schools.com
Share on:
If x = 9, what is a correct syntax to print 'The price is 9.00 dollars'?
x = 9
print(f'The price is {x:.2f} dollars')
print(f'The price is {x:2} dollars')
print(f'The price is {x:format(2)} dollars')