seed: curriculum content
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
def format_receipt(price, qty):
|
||||
"""Return a 3-line formatted receipt as a single string.
|
||||
|
||||
Format (note the dollar sign and 2-decimal places on prices):
|
||||
|
||||
Item price: $<price>
|
||||
Quantity: <qty>
|
||||
Total: $<price * qty>
|
||||
|
||||
format_receipt(9.99, 3) returns:
|
||||
"Item price: $9.99\nQuantity: 3\nTotal: $29.97"
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user