Functions
4 / 5
Default parameter values
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
.