Label¶
Write function label that takes a product name (string), a price
(float) and a currency (string), and returns a string with the given
product name, a colon, a espace, the given price, another espace and
the given currency. Clue: you may use function str. Save this
function into file label.py. Example:
>>> label ('notebook', 5.45, '€')
'notebook: 5.45 €'
Note
More tests are provided in file test-label.txt.
Solution
A solution of this function is provided in file
label.py.