NBA === The NBA Basketball League rankings are stored in a file where in each line there is the data concerning a team: team name (:class:`str`), name of the division where the team plays (:class:`str`) and the result, separated by the string ``' : '`` (a space, a colon and a space). The result is represented with the number of games won and lost (two :class:`int`) separated by a hyphen (``'-'``). For an example, of this kind of file, see file :download:`nba.txt` with the following content: .. literalinclude:: examples/nba.txt :language: console :lines: 1-5 Save the following functions into the file ``nba.py``. #. Write the function :py:func:`good_teams` that given the name of one file as the one indicated (:class:`str`) and number (:class:`int`), *n*, returns a :class:`list` with the names (:class:`str`) of those teams that have won more than *n* games, sorted alphabetically. Examples: .. literalinclude:: test-good_teams.txt :language: python3 :lines: 3- .. note:: More tests are provided in file :download:`test-good_teams.txt` #. Write the function :py:func:`group` that given the name of a file as indicated (:class:`str`), returns a dictionary (:class:`dict`) where the key is the division (:class:`str`) and the value the (:class:`list`) of those teams (:class:`str`) belonging to that division, sorted alphabetically. .. literalinclude:: test-group.txt :language: python3 :lines: 3- .. note:: More tests are provided in file :download:`test-group.txt` #. Write the function :py:func:`win` that given the name of a file as indicated (:class:`str`) and a division (:class:`str`), returns a (:class:`list`) with the teams (:class:`str`) of that division such that the number of matches they have won is greater than the number of matches they have lost. The elements in this list must be tuples (:class:`tuple`) of two elements: team name (:class:`str`) and number of won matches (:class:`int`) and have to be sorted in decreasing order by the number of won matches. .. literalinclude:: test-win.txt :language: python3 :lines: 3- .. note:: More tests are provided in file :download:`test-win.txt` .. rubric:: Solutions A solution of these functions is provided in file :download:`nba.py `