Patients ======== A file contains a record of the body temperatures of several patients staying in a hospital. The Each line of the file corresponds to a patient and contains the name of the patient (:class:`str`) followed by a number of measured temperatures (:class:`float`) all separated by coma (``','``) . The number of dates and the number of measures for all the patients is the same. The file :download:`patients.txt ` contains the following example: .. literalinclude:: patients.txt :language: python We need to **filter** the patients whose average temperature is strictly greater than a given threshold. Implement the following Python function in the module :mod:`patients` (file :file:`patients.py`): .. py:function:: filter_high_fever(pat_in, pat_out, th)`` such that | **takes** two :class:`str` with file names, and ``th`` which is a :class:`float` between ``35.0`` and ``40.0``, both included and does two things: | 1. **writes** a file with name ``pat_out`` with the information about the patients in ``pat_in`` whose average temperature is strictly greater than ``th``. The format etails of the file is as follows: - The patients must appear in the same order as in the ``pat_in`` file. - For each patient the must be a line with the name, the average temperature rounded to 2 decimal, and h@s measures, all separated by coma (`','`). | 2. **returns** two :class:`int` with the number of patients processed and the number of patients filtered. For example the call ``filter_high_fever('patients.txt', 'pat37.1.txt', 37.1)`` should return ``(9, 5)`` and create the file :download:`pat37.1.txt ` that contains the following text: .. literalinclude:: pat37.1.txt :language: python Doctests are available at the :download:`filter_high_fever-test.txt ` file.