Previous
Functions
3 / 6
Next
Default parameter values
Hint
Write a function print_receipt_line
with three parameters item
, price
, and amount
.
The function should print a line as it would appear on a receipt.
The amount of items should default to 1.
For example, print_receipt_line ('pen', 1.45, 2)
should print 2 x pen - 1.45
.
Help
Solve
Reset
Test results
Test result #
Expected output
Your output