Filter Index Average Grade ========================== Given a list of students names and three lists with their grades each list corresponding to one test. Each position in a list contains the grade of that test for the student whose names is placed in the same position in the names list. We wish to know the names of the students whose average grade is greater or equal than a given grade threshold. Students with one or more unknown grades are discarded. You are required to deliver the following functions in the module :mod:`fiag` (file :file:`fiag.py`): The first function is: .. py:function:: fiag(nameL, cat1L, cat2L, cat3L, t) such that **given** - *nameL*, a :class:`list` of student names (:class:`str`), - *cat1L, cat2L, cat3L*, :class:`lists` of the grades (:class:`float` between ``-1.0`` and ``10.0`` included) of those students for CAT #1, #2 and #3 respectively. All these lists have the same length than *nameL*. A negative value indicates an unknow grade for some reason. **returns** a new :class:`list` of :class:`tuple` with info the position (:class:`int`) and the name (:class:`str`) of the students in nameL whose average of the grades in that position in the lists ``cat1L, cat2L, cat3L`` is greater or equal than ``t``. The positions are in increasing order. Students with one or more unknown grades (the grade is negative) are discarded from the selection. For example: .. literalinclude:: fiag.test :language: pycon :start-after: --ini :end-before: --fi Notice that students Marc, Carla and JĂșlia' have been discarded because at least one grade is unknown. Doctests are available in the :download:`fiag.test` file. ------------------------------------------------------------------------------------------------ The second function is: .. py:function:: fiag_cl(nameL, cat1L, cat2L, cat3L, t) with the same specification as above but it must be implemented using **comprehension lists**. .. warning:: This function must be implement using **comprehension lists**. Doctests are available in the :download:`fiag_cl.test` file.