Votes ===== The listeners of a radio station vote on the three songs they have most liked. Votes are stored in a file where each line contains the name of a maximum of three songs, separated by a comma and a single whitespace. An example of this kind of file is file :download:`votes_radio.txt ` with the following content: .. literalinclude:: examples/votes_radio.txt :language: python3 :lines: 1- Note that there are listeners who have only voted one or two songs while others have voted three songs. We want to know how many votes got each song. Write the function :py:func:`votes` that takes two file names (strings). The first one corresponds to a file as described above and the second one is created by this function. This second file will contain at each line the following data corresponding to a song, separated by a star (``'*'``): number of votes got by this song and name. The file that will be created with the example above will have the following content: .. literalinclude:: examples/results.txt :language: python3 :lines: 1- To solve this exercise we suggest to built first a dictionary from the first file where the key is the title of a song and the value its number of votes, and then built the second file using this dictionary. Save this function into file ``votes.py``. The function must pass the following doctest: .. literalinclude:: votes.txt :language: python3 :lines: 3- .. note:: These tests can be found in file :download:`votes.txt ` .. rubric:: Solution A solution of this function is provided in file :download:`votes.py `