Wordize List ============ You are required to deliver the following function in the module :mod:`words` (file :file:`words.py`): .. py:function:: wordize_list(digit_words, parL) such that **given** - *digit_words*, a :class:`str` of characters with the *name* of each digit in increasing order, separated by ','. Ex. ``'zero,one,two,three,four,five,six,seven,eight,nine'``. - *parL*, a :class:`list` of :class:`str` with arbritary texts. **modifies** *parL* such that all digits in all strings in *parL* are wordized. For example: .. literalinclude:: wordize_list.test :language: pycon :start-after: --ini :end-before: --fi Additional doctests for validation are available in the :download:`wordize_list.test` file. .. tip:: Find bellow the specification of the function ``wordize_digits()`` of a string that should be familiar to you. Its implementation can be written/copied/imported and used to your convenience. ------------------------------------------------------------------------------------------------ Find herewith the specification of the (hereauxiliar) ``wordize_digits`` function: .. py:function:: wordize_digits(digit_words, text) such that **given** - *digit_words*, a :class:`str` of characters with the word for each digit (10), in increasing order, separated by ','. For instance ``'zero,one,two,three,four,five,six,seven,eight,nine'``. - *text*, any :class:`str` of characters **returns** a :class:`str` like *text* where - all digits has been replaced by the word denoting that digit followed by the digit between parenthesis - letters remain the same - characters that not letters or digits are **removed** *except* dot (``'.'``), coma (``,``), space (``' '``), semicolon (``';'``) and colon (``':'``) that remain the same. For example: .. literalinclude:: wordize_digits.test :language: pycon :start-after: --ini :end-before: --fi .. tip:: The digit words can be useful to get the word of a given digit: use the number represented by the digit as the index over the list resulting from spliting the *digit_words* string by ``','``. This is not the only way though but is very convenient. Additional doctests for validation are available in the :download:`wordize_digits.test` file.