A 100m race =========== Save all functions into a file named ``race.py``. #. The results of a 100 meters races season are stored into a nested :class:`list`. Each element of the main list is a sublist with the information corresponding to a male athlete: his name (:class:`str`) and one or more values (:class:`float`) that correspond to the times in seconds he has made in all 100 m races during this season. Write the function :py:func:`min_time` that takes a :class:`list` as described in the previous paragraph, and returns another :class:`list` with the season minimum time for each athlete. This list must be sorted increasingly. See the following examples: .. literalinclude:: test-race1.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`test-race1.txt` file. #. Write the function :py:func:`min_time_ath` that takes a :class:`list` as described in the initial paragraph, and returns another nested :class:`list` corresponding to the same athletes as in the given list and in the same order. The sublists in the returned nested list will have two elements: the name of the athlete (:class:`str`) and his minimum time (:class:`float`). See the following examples: .. literalinclude:: test-race2.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`test-race2.txt` file. #. Now we have a :class:`list` with the names of several athletes (:class:`str`) sorted by arrival order in a race (the winner is the first of the list). Write function :py:func:`position` that takes a :class:`list` of athletes names and a name of an athlete (:class:`str`), and returns the position (:class:`int`) in which he has arrived. If the athlete is not in the list, the function will return 0. See the following examples: .. literalinclude:: test-race3.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`test-race3.txt` file. #. We have a :class:`list` with the names of several athletes (:class:`str`) sorted inversely by arrival order in a race (the winner is the last of the list). Write function :py:func:`podium` that from such a list of names returns another :class:`list` with the name of the three first athletes sorted by arrival order. Suppose that the given list has a minimum of three athletes. See the following examples: .. literalinclude:: test-race4.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`test-race4.txt` file. .. rubric:: Solutions A solution of these functions is provided in file :download:`race.py `