Practice ยท 1 of 3
Formatted Receipt
item = "coffee" and price = 2.5 are given. Print exactly: coffee costs $2.50 โ use an f-string with 2 decimals.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Formatting Drills