Apply prefix ============ Save these functions into a file named ``apply_prefix.py``. 1. Write function :py:func:`apply_prefix_pure` that takes a :class:`list` of words (:class:`str`) and a prefix (:class:`str`), and **returns** a new :class:`list`. This output list will contain the same words as the input one and in the same order, but all the words will begin with the given prefix, with its first letter capitalised, and followed by a hyphen. Examples: .. literalinclude:: test-prefix_pure.txt :language: python3 :lines: 3-15 .. note:: More tests are provided in file :download:`test-prefix_pure.txt` 2. Write a **modifier** function :py:func:`apply_prefix_modifier` that takes a :class:`list` of words (:class:`str`) and a prefix (:class:`str`), and **modifies** the given list in such a way that each word begins with the given prefix, with its first letter capitalised, and followed by a hyphen. Examples .. literalinclude:: test-prefix_modifier.txt :language: python3 :lines: 3-15 .. note:: More tests are provided in file :download:`test-prefix_modifier.txt` file. .. rubric:: Solutions A solution of these functions is provided in file :download:`apply_prefix.py `