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